• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet headers

 
Nila dhan
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though this might be an elementary question, i would like to know what the request and response headers are and the purpose of them
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The header could info about the browser, its version, the Locale info, cookies.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should locate the documentation for the HTTP protocol, which if I remember correctly is called RFC2616. Here is the first thing that pops up in Google when searching for "RFC2616" - it defines exactly what the standard headers are and how they are used.
The servlet container does all the work of parsing the request headers and creating the response headers for you.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic