HTTP 请求头

请求字段 举例 描述
Accept Accept: text/plain 可以接受的Response
Accept-Charset Accept-Charset: utf-8 字符集
Accept-Encoding Accept-Encoding: gzip, deflate 可接受的编码算法
Accept-Languate Accept-Language: en-US
Accept-Datetime Accept-Datetime: Thu, 31 May 2007 20:35:00 GMT
Authorization Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Cache-Control Cache-Control: no-cache 缓存控制机制
Connection Connection: keep-alive Connection: Upgrade 连接机制
Cookie Cookie: $Version=1; Skin=new; 先前通过服务器发送的 HTTP cookie
Content-Length Content-Length: 348 q请求体长度
Content-MD5
Content-Type
Host Host: en.wikipedia.org:8080
If-Match If-Match: "737060cd8c284d8af7ad3082f209582d" 只有当客户端提供的entity和服务器端的entity一致的时候才做变动,主要用于PUT方法
If-Modified-Since 如果内容没有改变,允许返回一个304 Not Modified
If-None-Match If-None-Match: "737060cd8c284d8af7ad3082f209582d" 如果内容没有改变,允许返回一个304 Not Modified
If-Range If-Range: "737060cd8c284d8af7ad3082f209582d" 如果实体没有改变,把我缺少的这部分发送回来;否则返回整个实体
Origin Origin: http://www.example-social-network.com 跨域分享
Range Range: bytes=500-999 请求实体的一部分字节
Referer Referer: http://en.wikipedia.org/wiki/Main_Page 上一个点击的页面

维基百科-HTTP头

results matching ""

    No results matching ""