HTTP response header and request header information tables

Source: Internet
Author: User
Tags http cookie md5 ranges
This article is reproduced from: Http://tools.jb51.net/table/http_header
HTTP response header and request header information tables

The HTTP request header provides information about the request, response, or other sending entity. The header information for HTTP includes a common header, a request header, a response header, and an entity header four parts. Each header field consists of a domain name, a colon (:), and a field value of three parts. Universal Headers : Can be used for requests or responses, and is associated with a transaction as a whole rather than a specific resource. Request Headers : Allows the client to pass information about itself and the form of response that it wants. response Header : The server and the response to pass its own information. Entity Header : Defines the information for the transferred resource. Can be used for a request or for a response. According to the above classification of HTTP request header introduction can refer to this article, the tool according to the request and output divided into request and response two parts. HTTP Request Header Header

Header explain Sample
Accept Specify what types of content the client can receive Accept:text/plain, text/html
Accept-charset The set of character encodings that the browser can accept. Accept-charset:iso-8859-5
Accept-encoding Specifies the type of content compression encoding the Web server that the browser can support. Accept-encoding:compress, gzip
Accept-language Language acceptable to the browser Accept-language:en,zh
Accept-ranges One or more child scope fields that can request a Web page entity Accept-ranges:bytes
Authorization Authorization Certificate for HTTP Authorization Authorization:basic qwxhzgrpbjpvcgvuihnlc2ftzq==
Cache-control Specify the caching mechanism that the request and response follow Cache-control:no-cache
Connection Indicates whether a persistent connection is required. (HTTP 1.1 defaults to persistent connection) Connection:close
Cookies When an HTTP request is sent, it sends all the cookie values saved under the request domain name to the Web server. Cookie: $Version = 1; Skin=new;
Content-length Requested length of content content-length:348
Content-type Requested MIME information corresponding to the entity content-type:application/x-www-form-urlencoded
Date Date and time when the request was sent Date:tue Nov 08:12:31 GMT
Expect The specific server behavior that is requested Expect:100-continue
From Email from the user who made the request From:user@email.com
Host Specify the domain name and port number of the requested server Host:www.zcmhi.com
If-match The request content is valid only if it matches the entity If-match: "737060cd8c284d8af7ad3082f209582d"
If-modified-since If the requested part is modified after the specified time, the request succeeds and the 304 code is returned without modification If-modified-since:sat Oct 19:43:31 GMT
If-none-match If the content does not change returns 304 code, the parameter is the etag which the server sends previously, compares with the server response ETag to judge whether changes If-none-match: "737060cd8c284d8af7ad3082f209582d"
If-range If the entity does not change, the server sends the missing part of the client, otherwise the entire entity is sent. Parameter also is ETag If-range: "737060cd8c284d8af7ad3082f209582d"
If-unmodified-since Request success only if the entity has not been modified after the specified time If-unmodified-since:sat Oct 19:43:31 GMT
Max-forwards Limit the time that information is sent through proxies and gateways Max-forwards:10
Pragma Used to contain implementation-specific directives Pragma:no-cache
Proxy-authorization Authorization certificate to connect to the agent Proxy-authorization:basic qwxhzgrpbjpvcgvuihnlc2ftzq==
Range Request only part of an entity, specify a range range:bytes=500-999
Referer The address of the previous page, the current request page followed, that is, the routing Referer:http://www.zcmhi.com/archives/71.html
TE The transmission code that the client is willing to accept, and notifies the server to accept the receiving tail header information te:trailers,deflate;q=0.5
Upgrade Specify a transport protocol to the server for conversion by the server (if supported) upgrade:http/2.0, shttp/1.3, irc/6.9, rta/x11
User-agent The User-agent content contains the user information that made the request user-agent:mozilla/5.0 (Linux; X11)
Via Notifies intermediate gateways or proxy server addresses, communication protocols via:1.0 Fred, 1.1 nowhere.com (apache/1.1)
Warning Warning information about message entities warn:199 Miscellaneous Warning


HTTP Responses Header response header
Header explain Sample
Accept-ranges Indicates whether the server supports the specified range request and which type of staging request Accept-ranges:bytes
Age Estimated time from the original server to the proxy cache (in seconds, non-negative) Age:12
Allow Valid request behavior for a network resource, not allowed to return 405 Allow:get, head.
Cache-control Tell all caching mechanisms to cache and what type of Cache-control:no-cache
Content-encoding The return content compression encoding type supported by the Web server. Content-encoding:gzip
Content-language Language of the response body Content-language:en,zh
Content-length Length of response body content-length:348
Content-location Request another alternate address for a resource to substitute Content-location:/index.htm
Content-md5 Returns the MD5 checksum value of a resource content-md5:q2hly2sgsw50zwdyaxr5iq==
Content-range Byte position in this part of 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 issued Date:tue Nov 08:12:31 GMT
ETag The current value of the entity label for the request variable ETag: "737060cd8c284d8af7ad3082f209582d"
Expires Date and time when the response expired Expires:thu, Dec 16:00:00 GMT
Last-modified Request the last modification time of a resource Last-modified:tue Nov 12:45:26 GMT
Location Used to redirect the receiver to a location other than the requested URL to complete the request or identify the new resource Location:http://www.zcmhi.com/archives/94.html
Pragma Includes implementing a specific instruction that can be applied to any receiver on the response chain Pragma:no-cache
Proxy-authenticate It indicates the authentication scheme and the parameters that can be applied to the agent at the URL Proxy-authenticate:basic
Refresh Apply to redirect or a new resource is created, redirect after 5 seconds (proposed by Netscape, supported by most browsers)

Refresh:5; Url= http://www.zcmhi.com/archives/94.html

Retry-after Notifies the client to try again after a specified time if the entity is temporarily undesirable 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 Indicates that the header field exists at the end of the block-transfer encoding Trailer:max-forwards
Transfer-encoding File transfer encoding Transfer-encoding:chunked
Vary Tell the downstream agent whether to use a cached response or a request from the original server Vary: *
Via Tell where the proxy client response was sent via:1.0 Fred, 1.1 nowhere.com (apache/1.1)
Warning Warning an entity of possible problems warning:199 Miscellaneous Warning
Www-authenticate Indicates the authorization scheme that the client request entity should use

Www-authenticate:basic

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.