http協議頭文件

          Posted on 2007-03-12 15:08 Hally 閱讀(2115) 評論(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

          主站蜘蛛池模板: 桐乡市| 松滋市| 九龙县| 茌平县| 昌宁县| 南乐县| 库尔勒市| 凤凰县| 法库县| 岑溪市| 安宁市| 灵台县| 子洲县| 青海省| 龙江县| 普兰店市| 建德市| 铁力市| 洛阳市| 丹阳市| 大安市| 班玛县| 渑池县| 尚志市| 八宿县| 吉水县| 呼玛县| 房产| 桂平市| 运城市| 左贡县| 南开区| 尉氏县| 安多县| 锡林浩特市| 松潘县| 牟定县| 台江县| 会东县| 普定县| 潞西市|