• 01 August

    How To Get HTTP Response Header In Java

    In this post, we will see how to get HTTP response header in java. We have already seen how to send get or post request in java. I am using same example to demonstrate to get HTTP response header. [crayon-673f92d8cef46902426050/] [crayon-673f92d8cef4e207665267/] When you run above code, you will get below output: [crayon-673f92d8cef51073208014/]

  • 01 August

    How to get HTTP Request Header In Java

    In this post , we will see how to get HTTP request header in java. Sometimes, you want to print request header values. It is very simple to do it. You first need to get request object, then call getHeaderFields()  on it to get all request header values. [crayon-673f92d8d0480680738726/] Spring MVC: If you are using […]