This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes what is a HTTP header? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "what is a HTTP header?" Watch "what is a HTTP header?" New topic
Author

what is a HTTP header?

mara thamizhan
Ranch Hand

Joined: Jul 05, 2006
Posts: 74
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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


[My Blog]
All roads lead to JavaRanch
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
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


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
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 ]
 
jQuery in Action, 2nd edition
 
subject: what is a HTTP header?
 
Similar Threads
Getting Bad Response from Web service
headerFault ?
Setting header for cache
How to build a web proxy
design question