This example shows you how to get the Http response header values in Java.
This example shows you how to get the HTTP request headers in Java. To get the HTTP request headers, you need this class HttpServletRequest :
To view the request or response HTTP headers in Google Chrome, take the following steps :
In Spring framework, you can @Autowired a HttpServletRequest in any Spring managed bean directly, and later get the client’s IP address from the request headers