Http Request Headers Display in a JSP page
A JSP page can access the information in the
request header by using the implicit object request. An Http client sends a
request, it sends the request in the form of get or post method or any other
Http Request methods. It can also sends the headers with it.
Here is the list of most commonly used headers are
| Accept | The MIME types the browser prefers. |
| Accept- Encoding | The types of data encodings the browser knows how to decode. |
| Accept- Charset | The character set the browser expects. |
| Content-Length | It is mostly used for POST messages, it tells how much data is attached. |
| Cookie | It is one of the most frequently used headers, it returns the cookies. |
| Accept- Language | The language the browser is expecting. |







Comments
Join the conversation! Your thoughts help the community grow.