http response header and request header configuration comparison table

  HTTP Request Header Request
Header Explanation Example
Accept Specify the content type that the client can receive Accept: text/plain, text/html
Accept-Charset The character encoding set that the browser can accept. Accept-Charset: iso-8859-5
Accept-Encoding specifies the type of content compression encoding that the browser can support to return content from the web server. Accept-Encoding: compress, gzip
Accept-Language Languages ​​acceptable to browsers Accept-Language: en,zh
Accept-Ranges One or more sub-range fields that can request web page entities Accept-Ranges: bytes
Authorization Authorization certificate authorized by HTTP Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Cache-Control Specifies 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 a persistent connection) Connection: close
Cookie When an HTTP request is sent, all cookie values ​​stored under the requested domain name will be sent to
Content-Length Content length of the request 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 when the request was sent Date: Tue, 15 Nov 2010 08:12:31 GMT
Expect The specific server requested Behavior Expect: 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.zcmhi.com
If-Match Only valid if the request content matches the entity -Match: “737060cd8c284d8af7ad3082f209582d”
If-Modified-Since If the part of the request is modified after the specified time, the request succeeds, and if it is not modified, the 304 code is returned If-Modified-Since: Sat, 29 Oct 2010 19:43:31 GMT
If -None-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. The missing part, otherwise the entire entity is sent. The parameter is also Etag If-Range: “737060cd8c284d8af7ad3082f209582d”
If-Unmodified-Since The request is only successful 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 when information is transmitted through
proxies and gateways Max-Forwards : 10
Pragma used to contain implementation specific directives Pragma: no-cache
Proxy-Authorization Authorization credentials to connect to proxy Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Range Request only part of entity, specify range Range: bytes=500-999
Referer Previous The address of the web page, followed by the current request web page, that is, the source Referer: http://www.zcmhi.com/archives/71.html
The transfer encoding that the TE client is willing to accept, and notify the server to accept the tail and 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 User-Agent content Contains the requesting user information User-Agent: Mozilla/5.0 (Linux; X11)
Via Notifies intermediate gateway or proxy server address, communication protocol Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1)
Warning Warning information about the message entity Warning: 199 Miscellaneous warning
  
        
HTTP Responses Header Response
Header Explanation Example
Accept-Ranges Indicates whether the server supports the specified range request and which type of segmented request Accept-Ranges: bytes
Age From the origin server to the proxy cache Estimated time of formation (in seconds, non-negative) Age: 12
Allow Effective request behavior for a certain network resource, if not allowed, return 405 Allow: GET, HEAD
Cache-Control Tell all caching mechanisms whether they can be cached and which Type Cache-Control: no-cache
Content-Encoding The return content compression encoding supported by the web server. Content-Encoding: gzip
Content-Language The language of the response body Content-Language: en,zh
Content-Length The length of the response body Content-Length: 348
Content-Location Alternative alternate address of the requested resource Content-Location: /index .htm
Content-MD5 returns the MD5 check value of the resource Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ==
Content-Range The byte position of this part 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 original server sent the message Date: Tue, 15 Nov 2010 08:12:31 GMT
ETag The current value of the entity tag of the request variable ETag: “737060cd8c284d8af7ad3082f209582d”
Expires The date and time when 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 receiver to a location other than the requested URL to complete the request or identify a new resource Location: http:// www.zcmhi.com/archives/94.html
Pragma includes implementation specific directives that can be applied to any receiver in the response chain Pragma: no-cache
Proxy-Authenticate It indicates the authentication scheme and the URL that can be applied to the proxy The parameter Proxy-Authenticate: Basic
refresh is used for redirection 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 If the entity is temporarily unavailable, notify the client 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 Set Http Cookie Set-Cookie: UserID=JohnDoe; Max-Age=3600; Version=1
Trailer indicates that the header field exists at the end of the chunked transfer encoding Trailer: Max-Forwards
Transfer-Encoding File transfer encoding Transfer-Encoding:chunked
Vary Tells the downstream proxy whether to use a cached response or request it from the origin server Vary: *
Via Tells the proxy where the client response is sent Via: 1.0 fred, 1.1 nowhere.com (Apache/ 1.1)
Warning Warning entity may have problems Warning: 199 Miscellaneous warning
WWW-Authenticate Indicates the authorization scheme that the client requests the entity to use WWW-Authenticate: Basic
  
———————————————
Copyright Notice : This article is the original article of the CSDN blogger "Lonely Street Ronin~", and follows the CC 4.0 BY-SA copyright agreement. For reprinting, please attach the original source link and this statement.
Original link: https://blog.csdn.net/weixin_45942645/article/details/125769539

Guess you like

Origin blog.csdn.net/gcyaozuodashen/article/details/128187438