http协议头文件

Posted on 2007-03-12 15:08 Hally 阅读(2099) 评论(0)  编辑  收藏 所属分类: 技术文章转载

 

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

 

http 头的组成:

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

  HTTP 头字段包括 4 类:

       general-header ;

     request-header ;

       response-header ;

     entity-header .

 

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

  General Header Fields

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

   general header request response 都可用的 , 但是不能用于 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-body metainformation( 标题字段数据 ),

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

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

 

       -- Allow

       -- Content-Encoding

       -- Content-Language

       -- Content-Length

       -- Content-Location

       -- Content-MD5

       -- Content-Range

       -- Content-Type

       -- Expires

       -- Last-Modified


只有注册用户登录后才能发表评论。


网站导航:
 

posts - 43, comments - 200, trackbacks - 0, articles - 2

Copyright © Hally