Tips: Ctrl F Quick Find
| Header | Interpretation | Example |
|---|---|---|
| Accept | Specify the types of content that the client can receive | Accept: text/plain, text/html |
| Accept-Charset | The set of character encoding that the browser can accept. | Accept-Charset: iso-8859-5 |
| Accept-Encoding | Specifies the type of content compression encoding returned by the web server that the browser can support. | Accept-Encoding: compress, gzip |
| Accept-Language | Acceptable languages for the browser | Accept-Language: en,zh |
| Accept-Ranges | You can request one or more sub-scope fields of a web page entity | Accept-Ranges: bytes |
| Authorization | Authorization certificate for HTTP authorization | Authorization: Certificate of Authorization |
| Cache-Control | Specify the caching mechanism that requests and responses follow | Cache-Control: no-cache |
| Connection | Indicates whether a persistent connection is required. (HTTP 1.1 make persistent connections by default) | Connection: close |
| Cookie | When an HTTP request is sent, all cookie values stored under the request domain name are sent to the web server together. | Cookie: $Version=1; Skin=new; |
| Content-Length | Content length of the request | Content-Length: 348 |
| Content-Type | MIME information corresponding to the entity requested | Content-Type: application/x-www-form-urlencoded |
| Date | Date and time the request was sent | Date: Tue, 15 Nov 2010 08:12:31 GMT |
| Expect | The specific server behavior of the request | Expect: 100-continue |
| From | Email of the requesting user | From: [email protected] |
| Host | Specify the domain name and port number of the requested server | Host: www.jsons.cn |
| If-Match | Valid only if the request matches the entity | If-Match: "specific value" |
| If-Modified-Since | If the part of the request is modified after the specified time, the request is successful, and the 304 code is returned if it is not modified. | If-Modified-Since: Sat, 29 Oct 2010 19:43:31 GMT |
| If-None-Match | If the content has not changed, the return 304 code, the parameter is the Etag previously sent by the server, and the Etag responded by the server is compared to determine whether it has changed. | If-None-Match: Specific Value" |
| If-Range | If the entity has not changed, the server sends the missing part of the client, otherwise the whole entity is sent. parameter is also Etag | If-Range: "specific value" |
| If-Unmodified-Since | The request succeeds 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 | Limit the time that information is transmitted through proxies and gateways | Max-Forwards: 10 |
| Pragma | used to contain implementation-specific instructions | Pragma: no-cache |
| Proxy-Authorization | Authorization certificate to connect to the agent | Proxy-Authorization: Authorization certificate linked to proxy |
| Range | Only a part of the request entity, specifying the scope | Range: bytes=500-999 |
| Referer | The address of the previous page, followed by the current request page, which is the route | Referer: http://www.jsons.cn |
| TE | The client is willing to accept the transmission code and notifies the server to accept the tail header information. | TE: trailers,deflate;q=0.5 |
| Upgrade | Assign a transport protocol to the server for conversion (if supported) | Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11 |
| User-Agent | The content of the User-Agent contains information about the user making the request | User-Agent: Mozilla/5.0 (Linux; X11) |
| Via | Notify intermediate gateway or proxy server address, communication protocol | Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1) |
| Warning | Warning information about message entities | Warn: 199 Miscellaneous warning |
| Header | Interpretation | Example |
|---|---|---|
| Accept-Ranges | Indicates whether the server supports the specified range request and what type of segment request | Accept-Ranges: bytes |
| Age | Estimated time (in seconds, non-negative) from origin server to proxy cache formation | Age: 12 |
| Allow | Valid request behavior for a network resource, return 405 if not allowed | Allow: GET, HEAD |
| Cache-Control | Tell all caching mechanisms if they can be cached and which type | Cache-Control: no-cache |
| Content-Encoding | The compression encoding type of the returned content supported by the web server. | Content-Encoding: gzip |
| Content-Language | Response Body Language | Content-Language: en,zh |
| Content-Length | Length of response volume | Content-Length: 348 |
| Content-Location | Request another address where the resource can be replaced | Content-Location: /index.htm |
| Content-MD5 | Returns the MD5 checksum of the resource | Content-MD5: MD5校验值 |
| Content-Range | Byte position of this section in the entire return body | Content-Range: bytes 21010-47021/47022 |
| Content-Type | Returns the MIME type of the content | Content-Type: text/html; charset=utf-8 |
| Date | Time the original server message was sent | Date: Tue, 15 Nov 2010 08:12:31 GMT |
| ETag | Request the current value of the variable's entity label | ETag: "Request variable entity label current value" |
| Expires | Date and time the response expires | Expires: Thu, 01 Dec 2010 16:00:00 GMT |
| Last-Modified | Last modification time of the requested resource | Last-Modified: Tue, 15 Nov 2010 12:45:26 GMT |
| Location | Used to redirect the recipient to an unsolicited URL location to complete the request or identify a new resource | Location: http://www.jsons.cn |
| Pragma | Includes implementation-specific instructions that can be applied to any receiver in the response chain | Pragma: no-cache |
| Proxy-Authenticate | It indicates the authentication scheme and the parameters on that URL that can be applied to the proxy | Proxy-Authenticate: Basic |
| refresh | Applies to redirects or a new resource is created, redirects after 5 seconds (proposed by Netscape, supported by most browsers) |
Refresh: 5; url= http://www.jsons.cn
|
| Retry-After | If the entity is temporarily unavailable, notify the client to try again after a specified time | Retry-After: 120 |
| Server | web server software name | Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) |
| Set-Cookie | Set Http Cookie | Set-Cookie: UserID=JohnDoe; Max-Age=3600; Version=1 |
| Trailer | Pointing out the existence of the header field at the tail of the block transfer code | Trailer: Max-Forwards |
| Transfer-Encoding | File Transfer Coding | Transfer-Encoding:chunked |
| Vary | Tells the downstream proxy whether to use a cached response or request from the origin server | Vary: * |
| Via | Tell the proxy client where the response was sent | Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1) |
| Warning | Warn about possible problems with entities | Warning: 199 Miscellaneous warning |
| WWW-Authenticate | Indicates the authorization scheme that the client requesting entity should use | WWW-Authenticate: Basic |
HTTP request header provides information about requests, responses, or other sending entities. HTTP header information includes four parts: general header, request header, response header, and entity header.
Each header field consists of a domain name, a colon (:) and a field value.
Generic header: can be used for both requests and responses, is associated with the transaction as a whole rather than a specific resource
Request header: Allows the client to pass information about itself and the desired form of the response
Response Header: The server and the response that conveys its own information
Entity header: information that defines the resource being transmitted, either for the request or for the response
Friend Links:iCMS