转载地址:http://blog.sina.com.cn/s/blog_6ce2999701012w15.html
HTTP头字段包括4类:
general-header;
request-header;
response-header;
entity-header;
*************************************************************************
General Header Fields
general header是request、response都可用的,但是不能用于entity.
-- Cache-Control
-- Connection
-- Date
-- Pragma
-- Trailer
-- Upgrade
-- Via
--Warning
***************************************************************************
Request Header Fields
request-header fields 允许客户端传递关于request和客户端的附加信息到服务端
-- Accept
-- Accept-Charset
-- Accept-Language
-- Authorization
-- Expect
-- From
-- Host
-- If-Match
-- If-Modified-Since
-- If-None-Match
-- If-Range
-- Max-Forwards
-- Proxy-Authorization
-- Range
-- Referer
-- TE
-- User-Agent
***************************************************************************
Response Header Fields
response-header fields 允许服务端传递关于response的、不能放到Status-Line的附加信息。这些头给出关于服务端的信息。
--Accept-Ranges
--Age
--ETag
--Location
--Proxy-Authenticate
--Retry-After
--Server
--Vary
--WWW-Authenticate
***************************************************************************
Entity Header Fields
Entity-header fields 定义关于entity-body的metainformation(标题字段数据)。
如果当前没有body,则定义被request确定的资源信息。
一些metainformation是可选的;一些是必须的。
--Allow
--Content-Encoding
--Content-Length
--Content-Location
--Content-MD5
--Content-Range
--Content-Type
--Expires
--Last-Modified
--extension-header