The request message is encapsulated in an HttpServletRequest object, which is passed into the doGet() methods by the Servlet container. HttpServletRequest object provides many methods for you to retrieve the headers:
The request message is encapsulated in an HttpServletRequest object, which is passed into the doGet() methods by the Servlet container. HttpServletRequest object provides many methods for you to retrieve the headers: