0
点赞
收藏
分享

微信扫一扫

HTTP响应头和请求头

HTTP的头信息包括通用头、请求头、响应头和实体头四个部分。每个头域由一个域名,冒号( : )和域值三部分组成。

通用头标:即可用于请求,也可用于响应,是作为一个整体而不是特定资源与事务相关联。
请求头标:允许客户端传递关于自身的信息和希望的响应形式。
响应头标:服务器和于传递自身信息的响应。
实体头标:定义被传送资源的信息。即可用于请求,也可用于响应

HTTP Request Header 请求头

Accept : text/plain, text/html
Accept-Charset : iso-8859-5
Accept-Encoding : compress, gzip
Accept-Language : en,zh
Accept-Ranges : bytes
Authorization : Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Cache-Control : no-cache
Connection : close
Cookie : $Version=1; Skin=new;
Content-Length : 348
Content-Type : application/x-www-form-urlencoded
Date : Tue, 15 Nov 2010 08 : 12 : 31 GMT
Expect : 100-continue
From : user@email.com
Host : www.zcmhi.com
If-Match : “737060cd8c284d8af7ad3082f209582d”
If-Modified-Since : Sat, 29 Oct 2010 19 : 43 : 31 GMT
If-None-Match : “737060cd8c284d8af7ad3082f209582d”
If-Range : “737060cd8c284d8af7ad3082f209582d”
If-Unmodified-Since : Sat, 29 Oct 2010 19 : 43 : 31 GMT
Max-Forwards : 10
Pragma : no-cache
Proxy-Authorization : Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Range : bytes=500-999
Referer : http : //www.zcmhi.com/archives/71.html
TE : trailers,deflate;q=0.5
Upgrade : HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11
User-Agent : Mozilla/5.0 (Linux; X11)
Via : 1.0 fred, 1.1 nowhere.com (Apache/1.1)
Warn : 199 Miscellaneous warning

HTTP Responses Header 响应头

Accept-Ranges : bytes
Age : 12
Allow : GET, HEAD
Cache-Control : no-cache
Content-Encoding : gzip
Content-Language : en,zh
Content-Length : 348
Content-Location : /index.htm
Content-MD5 : Q2hlY2sgSW50ZWdyaXR5IQ==
Content-Range : bytes 21010-47021/47022
Content-Type : text/html; charset=utf-8
Date : Tue, 15 Nov 2010 08 : 12 : 31 GMT
ETag : “737060cd8c284d8af7ad3082f209582d”
Expires : Thu, 01 Dec 2010 16 : 00 : 00 GMT
Last-Modified : Tue, 15 Nov 2010 12 : 45 : 26 GMT
Location : http : //www.zcmhi.com/archives/94.html
Pragma : no-cache
Proxy-Authenticate : Basic
Refresh : 5; url=

http : //www.zcmhi.com/archives/94.html
Retry-After : 120
Server : Apache/1.3.27 (Unix) (Red-Hat/Linux)
Set-Cookie : UserID=JohnDoe; Max-Age=3600; Version=1
Trailer : Max-Forwards
Transfer-Encoding : chunked
Vary : *
Via : 1.0 fred, 1.1 nowhere.com (Apache/1.1)
Warning : 199 Miscellaneous warning
WWW-Authenticate : Basic
举报

相关推荐

0 条评论