17 October 2010

0 What is Http Request Header?

Http Request Header


The Http Request Header contains the client side information which may be useful for the web server to generate responce. Http Request headers are very much different from the Form data. Request Headers are directly sent by the browser. Request headers comes immediately after POST or GET request line.
The Http Request object includes the following headers: Host, Accept-Encoding, Accept, Cookie, Host, Referrer, User-Agent,Connection etc.

Accessing Request Header in Java

In Java, HTTP request headers can be accessed by the following methods of the HttpServletRequest interface.
  • getHeaderNames
  • getHeader
  • getHeaders


0 comments:

Feeds Comments

Please give your valuable comments.