请求的细节
l 用于HTTP请求中的常用头
l Accept: text/html,image/* --支持数据类型
l Accept-Charset: ISO-8859-1 --字符集
l Accept-Encoding: gzip --支持压缩
l Accept-Language:zh-cn --语言环境
l Host: www.itcast.com:80 --访问主机
l If-Modified-Since: Tue, 11 Jul 2000 18:23:51 GMT --缓存时间
l Referer: http://www.itcast.com/index.jsp --来自哪个页面、防盗链
l User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT5.0)
l Cookie
l Connection: close/Keep-Alive --链接状态
l Date: Tue, 11 Jul 2000 18:23:51 GMT --时间
响应细节
l HTTP请求中的常用响应头
l Location: http://www.it315.org/index.jsp --跳转方向
l Server:apache tomcat --服务器型号
l Content-Encoding: gzip --数据压缩
l Content-Length: 80 --数据长度
l Content-Language: zh-cn --语言环境
l Content-Type: text/html; charset=GB2312 --数据类型
l Last-Modified: Tue, 11 Jul 2000 18:23:51 GMT --最后修改时间
l Refresh: 1;url=http://www.it315.org --定时刷新
l Content-Disposition: attachment; filename=aaa.zip --下载
l Set-Cookie:SS=Q0=5Lb_nQ; path=/search
l Expires: -1 --缓存
l Cache-Control: no-cache --缓存
l Pragma: no-cache --缓存
l Connection: close/Keep-Alive --连接
l Date: Tue, 11 Jul 2000 18:23:51 GMT --时间