| Header |
Description |
Example |
| Accept |
Specifies the content types that the client can receive. |
Accept: text/plain, text/html |
| Accept-Charset |
Character sets that the browser can accept. |
Accept-Charset: iso-8859-5 |
| Accept-Encoding |
Specifies the compression encoding types that the browser can support. |
Accept-Encoding: compress, gzip |
| Accept-Language |
Languages acceptable to the browser. |
Accept-Language: en, zh |
| Accept-Ranges |
Indicates that the client can request one or more sub-ranges of a resource. |
Accept-Ranges: bytes |
| Authorization |
HTTP authorization credentials. |
Authorization: credentials |
| Cache-Control |
Specifies the caching mechanisms that must be followed for requests and responses. |
Cache-Control: no-cache |
| Connection |
Indicates whether a persistent connection is required. (HTTP/1.1 uses persistent connections by default) |
Connection: close |
| Cookie |
Cookies saved under the request domain are sent to the web server with the request. |
Cookie: $Version=1; Skin=new; |
| Content-Length |
The length of the request content. |
Content-Length: 348 |
| Content-Type |
MIME type of the request body. |
Content-Type: application/x-www-form-urlencoded |
| Date |
The date and time the request was sent. |
Date: Tue, 15 Nov 2010 08:12:31 GMT |
| Expect |
Specific behavior required from the server. |
Expect: 100-continue |
| From |
The email address of the user making the request. |
From: user@jsons.cn |
| Host |
The domain name and port of the server being requested. |
Host: www.jsons.cn |
| If-Match |
The request is valid only if it matches the specified entity value. |
If-Match: "specific-value" |
| If-Modified-Since |
The request succeeds only if the resource has been modified after the specified date; otherwise returns 304. |
If-Modified-Since: Sat, 29 Oct 2010 19:43:31 GMT |
| If-None-Match |
Returns 304 if the content has not changed. Compares the previous ETag sent by the server with the current one. |
If-None-Match: "specific-value" |
| If-Range |
If the entity has not changed, the server sends the missing part; otherwise sends the entire entity. Parameter is also an ETag. |
If-Range: "specific-value" |
| If-Unmodified-Since |
The request succeeds only if the entity has not been modified since the specified date. |
If-Unmodified-Since: Sat, 29 Oct 2010 19:43:31 GMT |
| Max-Forwards |
Limits the number of times a request can pass through proxies or gateways. |
Max-Forwards: 10 |
| Pragma |
Includes implementation-specific directives. |
Pragma: no-cache |
| Proxy-Authorization |
Authorization credentials for connecting to a proxy. |
Proxy-Authorization: credentials |
| Range |
Requests only a portion of the entity, specifying the range. |
Range: bytes=500-999 |
| Referer |
The address of the previous web page from which the current request originated. |
Referer: http://www.jsons.cn |
| TE |
Specifies the transfer encodings the client is willing to accept and whether to accept trailers. |
TE: trailers, deflate;q=0.5 |
| Upgrade |
Requests the server to switch to another protocol if supported. |
Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11 |
| User-Agent |
Contains information about the user agent making the request. |
User-Agent: Mozilla/5.0 (Linux; X11) |
| Via |
Informs about intermediate proxies or gateways through which the request is sent. |
Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1) |
| Warning |
Information about potential issues with the message entity. |
Warning: 199 Miscellaneous warning |