List of HTTP header fields
Appearance
HTTP Headers form the core of a HTTP request, and are very important in a HTTP response. They define various characteristics of the data that is requested or the data that has been provided.
This is an incomplete list of some of the HTTP headers defined in RFC 2616 for HTTP/1.1
Header | Description | Example | Types |
---|---|---|---|
Accept | Content-Types that are acceptable | Accept: text/plain | requests |
Accept-Charset | Character sets that are acceptable | Accept-Charset: iso-8859-5 | requests |
Accept-Encoding | Acceptable encodings | Accept-Encoding: compress, gzip | requests |
Accept-Language | Acceptable languages for response | Accept-Language: da | requests |
Accept-Ranges | What partial content range types this server supports | Accept-Ranges: bytes | responses |
Age | The age the object has been in a proxy cache in seconds | Age: 12 | responses |
Authorization | Authentication credentials for HTTP authentication | Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== | requests |
Content-Type | The mime type of this content | Content-Type: text/html; charset=utf-8 | responses |
Content-Length | The length of the content in bytes | Content-Length: 348 | responses |
Host | The domain name of the server (for virtual hosting) | Host: www.w3.org | requests |
If-Modified-Since | Allows a 304 Not Modified to be returned | If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT | requests |
Last-Modified | The last modified date for the requested object | Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT | responses |
Location | Used in redirection | Location: http://www.w3.org/pub/WWW/People.html | responses |
User-Agent | The user agent string of the user agent | User-Agent: Mozilla/5.0 (Linux; X11; UTF-8) | requests |
Server | A name for the server | Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) | responces |