Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is a HTTP header?

 
mara thamizhan
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Can i know what is a HTTP header and what is the need for setting it?
I read that HTTP headers should be set for a JSP Page & can i know why it should be set?

cheers,
sai.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP headers are part of the HTTP protocol. They are sent between server and client to give special information. For example, the Content-Type will tell what kind of data (text, html, xml, pdf...) is being sent.

Have a look at the HTTP RFC to know more about headers:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you want to have a closer look at your http headers, then use

http://livehttpheaders.mozdev.org/ or http://www.blunck.info/iehttpheaders.html
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
arr gem,

here is your chance to win a free movie ticket.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
alright ignore the movie ticket deal...now that you have clicked on the link above, why dont you spend the next few seconds updating your display name so that its according to the javaranch naming standards.

your name should be in the format <first name><surname> example: sai kumar. having a display name of "arr gem" and signing your post as "sai" is not acceptable.

For more information see http://www.javaranch.com/name.jsp

thanks for your time.
[ September 04, 2006: Message edited by: Lynette Dawson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic