|
Header
|
Explanation
|
Example
|
|
Accept
|
Specifies the content types that the client can accept
|
Accept: text/plain, text/html
|
|
Accept-Charset
|
Character sets that the browser can accept.
|
Accept-Charset: iso-8859-5
|
|
Accept-Encoding
|
Specifies the content-encoding types that the client can support for responses from the web server.
|
Accept-Encoding: compress, gzip
|
|
Accept-Language
|
Languages that the browser can accept
|
Accept-Language: en,zh
|
|
Accept-Ranges
|
Indicates that the client can request a range of the web entity
|
Accept-Ranges: bytes
|
|
Authorization
|
Authorization credentials for HTTP authorization
|
Authorization: Authentication Credentials
|
|
Cache-Control
|
Specifies caching mechanisms that should be followed by the request and the response
|
Cache-Control: no-cache
|
|
Connection
|
Indicates whether a persistent connection is needed. (HTTP 1.1 defaults to persistent connections)
|
Connection: close
|
|
Cookie
|
When an HTTP request is sent, it sends all cookie values stored under that request domain to the web server.
|
Cookie: $Version=1; Skin=new;
|
|
Content-Length
|
The length of the request content
|
Content-Length: 348
|
|
Content-Type
|
The MIME information corresponding to the request entity
|
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 server behavior requested
|
Expect: 100-continue
|
|
From
|
Email of the user sending the request
|
From: [email protected]
|
|
Host
|
Specifies the domain name and port number of the server being requested
|
Host: www.jsons.cn
|
|
If-Match
|
Valid only if the request content matches the entity
|
If-Match: "specific value"
|
|
If-Modified-Since
|
The request is successful only if the requested part has been modified after the specified time; returns a 304 code if it has not been modified
|
If-Modified-Since: Sat, 29 Oct 2010 19:43:31 GMT
|
|
If-None-Match
|
Returns a 304 code if the content has not changed; the parameter is the Etag previously sent by the server, which is compared to the Etag returned by the server to determine if it has changed
|
If-None-Match: "specific value"
|
|
If-Range
|
If the entity has not changed, the server sends the part that the client is missing, otherwise sends the entire entity. The parameter is also the Etag
|
If-Range: "specific value"
|
|
If-Unmodified-Since
|
The request is successful only if the entity has not been modified after the specified time
|
If-Unmodified-Since: Sat, 29 Oct 2010 19:43:31 GMT
|
|
Max-Forwards
|
Limits the time the information is passed through proxies and gateways
|
Max-Forwards: 10
|
|
Pragma
|
Used to include specific directives for implementation
|
Pragma: no-cache
|
|
Proxy-Authorization
|
Authorization credentials to connect to the proxy
|
Proxy-Authorization: Authorization credentials to connect to the proxy
|
|
Range
|
Requests only a part of the entity, specifying the range
|
Range: bytes=500-999
|
|
Referer
|
The address of the previous webpage, the current requested webpage follows it, i.e., the source.
|
Referer: http://www.jsons.cn
|
|
TE
|
The transfer encodings the client is willing to accept, and informs the server to handle trailer information
|
TE: trailers,deflate;q=0.5
|
|
Upgrade
|
Specifies a certain transfer protocol to the server so that the server can convert (if supported)
|
Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11
|
|
User-Agent
|
The content of User-Agent contains information about the user making the request
|
User-Agent: Mozilla/5.0 (Linux; X11)
|
|
Via
|
Notifies the address of the intermediate gateway or proxy server and the communication protocol.
|
Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1)
|
|
Warning
|
Warning information about the message entity
|
Warn: 199 Miscellaneous warning
|