• 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-61e668d80e7fa616063504/] [crayon-61e668d80e805634645327/] When you run above code, you will get below output: [crayon-61e668d80e808764817203/]

  • 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-61e668d80f7b7855465949/] Spring MVC: If you are using […]