HTTP Request Header
Header explain example
Accept Specifies the type of content the client side can receive Accepted: text/plain, text/html
Accept-Charset The set of character encodings accepted by the browser. Accept-Charset: iso-8859-5
Accept-Encoding Specifies the type of content compression encoding that web servers can support. Accept-Encoding: compressed, gzip
Accept-Language Languages accepted by browsers Accept-Language: en, zh
Accept-Ranges You can request one or more subscope fields of a web page entity Accept-Ranges: bytes
Authorization Authorization certificate for HTTP authorization Authorization: Authorization certificate
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 defaults to persistent connections) Connection: closed
Cookie When an HTTP request is sent, all the cookie values stored in the request domain are sent to the web server together. Cookies: $Version = 1; Skin = new;
Content-Length The length of the requested content Content-Length: 348
Content-Type The requested MIME information corresponding to the 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 The specific server behavior requested Expected: 100-continue
From Email of the requesting user From: [email protected]
Host Specify the domain name and port number of the requesting server Host: www.webmastertoolbag.com
If-Match Valid only if the request content 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 if it is not modified, a 304 code is returned. If-Modified-Since: Sat, 29 Oct 2010 19:43:31 GMT
If-One-Match If the content has not changed, return 304 code, the parameter is the Etag previously sent by the server, and compare it with the Etag responded by the server to determine whether it has changed. If-One-Match: "Specific Value"
if-Range If the entity has not changed, the server sends the missing part of the client side, otherwise the entire entity is sent. The parameter is also 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 Limit the time for information to pass 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 broker Proxy-Authorization: The authorization certificate linked to the proxy
Range Request only part of the entity, specifying the scope Range: bytes = 500-999
Referer The address of the previous page, followed by the current requested page, i.e. the path Referer: http://www.webmastertoolbag.com
TE The client side is willing to accept the transmission code, and notifies the server to accept the trailing header information TE: trailers, deflate; q = 0.5
Upgrade Specify a transport protocol to the server for the server to convert (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 who made the request User-Agent: Mozilla/5.0 (Linux; X11)
Via Notify the intermediary gateway or proxy server address, communication protocol Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1)
Warning Warning messages about message entities Warning: 199 Miscellaneous warnings
HTTP Responses Header
Header explain example
Accept-Ranges Indicates whether the server supports specified range requests and what type of segmentation requests Accept-Ranges: bytes
Age Estimated time from origin server to proxy cache formation (in seconds, non-negative) Age: 12
Allow A valid request for a network resource, 405 if not allowed. Allowed: GET, HEAD
Cache-Control Tell all caching mechanisms whether they can be cached and what type Cache-Control: no-cache
Content-Encoding Return content compression encoding types supported by the web server. Content-Encoding: gzip
Content-Language Responsive language Content-Language: en, zh
Content-Length The length of the response body Content-Length: 348
Content-Location Request another alternative address for the resource Content-Location: /index.htm
Content-MD5 Returns the MD5 checksum of the resource Content-MD5: MD5 checksum
Content-Range The byte position of this section in the entire return body Content-Range: bytes 21010-47021/47022
Content-Type The MIME type of the returned content Content-Type: text/html; charset = utf-8
Date The time when the original server message was sent Date: Tue, 15 Nov 2010 08:12:31 GMT
ETag The current value of the entity label of the request variable ETag: "Request variable entity tag current value"
Expires The date and time the response expires Expires: Thu, 01 Dec 2010 16:00:00 GMT
Last-Modified The last modification time of the requested resource Last-Modified: Tue, 15 Nov 2010 12:45:26 GMT
Location Used to redirect the recipient to a non-request URL location to complete the request or identify a new resource Location: http://www.webmastertoolbag.com
Pragma Includes implementation-specific instructions that can be applied to any recipient in the response chain Pragma: no-cache
Proxy-Authenticate It indicates the authentication scheme and the parameters that can be applied to this URL of the proxy Proxy-Authenticate: Basic
Refresh Applied to a redirect or a new resource is created, redirected after 5 seconds (proposed by Netscape and supported by most browsers)
Refresh: 5; url = http://www.webmastertoolbag.com
Retry-After If the entity is temporarily undesirable, notify the client side to try again after the specified time Retry-After: 120
Server Web server software name Server: Apache/1.3.27 (Unix) (Red-Hat/Linux)
Set-Cookie Setting HTTP Cookies Set-Cookie: UserID = JohnDoe; Max-Age = 3600; Version = 1
Trailer Indicates that the header field exists at the tail of the chunked transfer code Trailer: Max-Forwards
Transfer-Encoding file transfer encoding Transfer-Encoding: chunked
Vary Tell downstream proxies whether to use cached responses or request from the origin server Vary: *
Via Tell the client side where the response was sent Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1)
Warning Warning entities of possible problems Warnings: 199 Miscellaneous warnings
WWW-Authenticate Indicates the authorization scheme that the client side requesting entity should use WWW-Authenticate: Basic

Online HTTP response headers, HTTP request headers

The HTTP request header provides information about the request, response, or other sending entity. The 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 domain value

Generic headers: can be used for both requests and responses, and are associated with a transaction as a whole rather than as a specific resource

Request header: Allows the client side to pass information about itself and the desired response form

Response headers: the server and the response used to communicate its own information

Entity headers: information that defines the resource being transmitted, which can be used for both requests and responses

Your footsteps: