实体头:
实体头用坐实体内容的元信息,描述了实体内容的属性,包括实体信息类型,长度,压缩方法,最后一次

修改时间,数据有效性等。
Allow:GET,POST
Content-Encoding:gzip
Content-Language:zh-cn
Content-Length:80
Content-Location:http://www.dfdf.org/dfdf.html
Content-MD5:dfdfdfdfdfdfdff==
Content-Range:bytes 2543-4532/7898
Content-Type:text/html; charset=GB2312       主类型/子类型
Expires: GMT   为0证明不缓存
Last-Modified:GMT

扩展头:
在HTTP消息中,也可以使用一些再HTTP1.1正式规范里没有定义的头字段,这些头字段统称为自定义的

HTTP头或者扩展头,他们通常被当作是一种实体头处理。
现在流行的浏览器实际上都支持Cookie,Set-Cookie,Refresh和Content-Disposition等几个常用的扩展头

字段。
Refresh头字段:1
Refresh: 1;url=http://www.dfdf.org  //过1秒跳转到指定位置
Content-Disposition头字段
Content-Type: applicaiton/octet-stream
Content-Disposition:attachment; filename=aaa.zip

posted on 2008-03-16 21:52  IT Person  阅读(4161)  评论(0编辑  收藏  举报