请求头:
Accept:浏览器可接受的MIME类型
Accept-Charset:浏览器可接受的字符集
Accept-Encoding:浏览器能够进行解码的数据编码方式,比如gzip
Accept-Language:浏览器所希望的语言种类
Authorization:授权信息
Connection: 表示是否需要持久连接
Content-Length:表示请求消息正文的长度
Cookie:这是最重要的请求头信息之一
From:请求发送者的email地址
Host:初始URL中的主机和端口
If-Modified-Since:只有当所请求的内容在指定的日期之后又经过修改才返回它,否则返回
响应头:
Allow:服务器支持哪些请求方法(如GET、POST等)
Content-Encoding:文档的编码(Encode)方法 GZIP
Content-Length:内容长度
Content-Type:MIME类型
Date:当前的GMT时间
Expires:过期时间
Last-Modified:文档的最后改动时间
Location:应当到哪里去提取文档
Refresh:刷新时间
Set-Cookie:设置cookie
WWW-Authenticate:认证信息
Etag:
cache-control:
Pragma:Pragma:no-cache等同cache-control:no-cache