当前位置: 首页 >> 网络协议与安全 >> HTTP协议头字段索引
 

HTTP协议头字段索引

作者:tianxinet      来源:zz     发表时间:2006-07-23     浏览次数:      字号:    

httpheader fields在开发的web部分经常用到,今天机器网络有些异常,在做协议抓包分析的时候想起做一份完整的header fields索引,用到的时候可以按照索引查阅http规范。

 

HTTP协议完整规范参见W3C官方网站http://www.w3.org/Protocols/

 

http头的组成:

==============

 HTTP头字段包括4类:

       general-header ;

     request-header ;

       response-header ;

     entity-header .

 

*******************************************************************************

 General Header Fields

=============================

   general headerrequestresponse都可用的, 但是不能用于entity.

 

 

       -- Cache-Control

       -- Connection

       -- Date

       -- Pragma

       -- Trailer

       -- Transfer-Encoding

       -- Upgrade

       -- Via

       -- Warning

 

*******************************************************************************

 Request Header Fields

======================

 

   request-header fields 允许客户端传递关于request和客户端的附加信息到服务端,

 

       -- Accept

       -- Accept-Charset

       -- Accept-Encoding

       -- Accept-Language

       -- Authorization

       -- Expect

       -- From

       -- Host

       -- If-Match

       -- If-Modified-Since

       -- If-None-Match

       -- If-Range

       -- If-Unmodified-Since

       -- 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-bodymetainformation(标题字段数据),

   如果当前没有body, 则定义被request确定的资源信息.

   一些metainformation是可选的; 一些是必须的。

 

       -- Allow

       -- Content-Encoding

       -- Content-Language

       -- Content-Length

       -- Content-Location

       -- Content-MD5

       -- Content-Range

       -- Content-Type

       -- Expires

       -- Last-Modified

       -- extension-header

 

责任编辑 webmaster

 
 
 
 
 
评论更多>>
 
 
 
发表
 
姓名: QQ:
性别: MSN:
E-mail: 主页:
评分: 1 2 3 4 5
评论内容:
验证码:
  
  • 请遵守《互联网电子公告服务管理规定》及中华人民共和国其他各项有关法律法规。
  • 严禁发表危害国家安全、损害国家利益、破坏民族团结、破坏国家宗教政策、破坏社会稳定、侮辱、诽谤、教唆、淫秽等内容的评论 。
  • 用户需对自己在使用本站服务过程中的行为承担法律责任(直接或间接导致的)。
  • 本站管理员有权保留或删除评论内容。
  • 评论内容只代表网友个人观点,与本网站立场无关。
  •