HTTP Headers for HTML

 

ATTENTION: THIS PAGE IS Valid HTML 5 AND IS BEST VIEWED WITH HTML 5 - Please upgrade your browser or download one of the HTML 5 compatible browsers such as Mozilla Firefox, Chrome, Opera or IE 9 (March 14, 2011 or later). For more information see HTML 5 browsers.


If you find this helpful, please click the Google +1 Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.)


PDF mobile

HTTP Request Headers

HTTP headers sent in the request from the web browser or other client software to the web server
Accept:
a list of media types that the client can accept in the response from the server, with optional quality factor values indicating the client's relative preference from 0.0, which is least preferable, to 1.0, which is most preferable
Accept: application/xhtml+xml;q=1.0,text/html;q=0.9,image/png,image/jpeg,image/gif,*/*;q=0.1
Accept-Charset:
a list of character sets that the client can accept, with optional quality factor values indicating the client's relative preference from 0.0, which is least preferable, to 1.0, which is most preferable
Accept-Charset: iso-8859-1;q=1.0,utf-8;q=0.7,utf-16;q=0.5,*;q=0.1
Accept-Encoding:
Accept-Encoding: gzip,deflate
Accept-Language:
Accept-Language:en-us,en;q=0.5
Cache-Control:
Content-Length:
Content-Type:
media type of the content in the body of the request, for POST and PUT requests
Host:
host name or IP address from the URL being requested (the part just after the http:// or other protocol scheme
Host: www.exampleonly.com
Referer:
Referer: http://www.exampleonly.com/index.html
User-Agent:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; InfoPath.1; .NET4.0C)
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
Opera/9.80 (Windows NT 6.1; U; en) Presto/2.6.30 Version/10.63

HTTP Response Headers

HTTP headers sent in the response from the web server to the web browser or other client software
Cache-Control:
Cache-Control: max-age=120
Content-Language:
Content-Length:
Content-Disposition:
Content-Type:
Content-Type: application/xhtml+xml;charset=UTF-8
Expires:
Last-Modified:
Location:
Refresh:
Transfer-Encoding:
X-UA-Compatible:
X-UA-Compatible: IE=8

Valid HTML 5