What is HTTP header?

It contains the information about the page. It transmits along with the request.
setHeader (“headername”,”value”)

Some headers are:

Connection: Persistent connection or not
Content-Disposition:Client browser asks user to save the response in form of file in disk (not in case of HTML document)
Content-Language:Language code
Content-Length:In case of persistent connection length of the content in bytes
Expires:Determines the time after which the response can not be cached
Refresh:How soon the response would be refreshed (in sec)

No comments:

Post a Comment