admin管理员组

文章数量:1530845

2024年7月12日发(作者:)

HTTP 1 1协议规范 中文归纳版)

一、介绍(introduction) < xmlnamespace prefix ="o" ns

="urn:schemas-microsoft-com:office:office" />

1. 目的——HTTP/0.9-〉HTTP/1.0-〉HTTP/1.1

2. 要求——MUST、REQUIRED、SHOULD

3. 术语——连接(Connection)、消息(Message)、请求(Request)、应答

(Response)、资源(Resource)、实体 (Entity)、表示方法(Representation)、内

容协商(Content Negotiation)、变量(Variant)、客户机(Client)、用户代理

(User agent)、服务器(Server)、原服务器(Origin server)、代理服务器

( Proxy)、网关(gateway)、高速缓存(Cache)、可缓存(Cacheable)、直

接(first-hand)、明确终止时间(explicit expiration time)、探索终止时间

(heuristic expiration time)、年龄(Age)、保鲜寿命(Freshness lifetime)、

保鲜(Fresh)、陈旧(Stale)、语义透明(semantically transparent)、有效性

判别器(Validator)、实体标记(entity tag)或最终更改时间(Last-Modified

time))、上游/下游(upstream/downstream)、向内/向外(inbound/outbound)

4. 总体操作——请求/应答、中介

二、符号惯例与一般语法(notational conversions and generic grammar)

1. 扩充BNF——name = definition,"literal",rule1 | rule2,(rule1

rule2),*rule,[rule],N rule, #rule,; comment, implied *LWS

2. 基本规则——

OCTET,CHAR,UPALPHA,LOALPHA,ALPHA,DIGIT,CTL,CR,LF,SP,HT,<">

三、协议参数(protocol parameters)

1. HTTP版本——HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT

2. 统一资源标示符(URI)——统一资源定位器(URL)和统一资源名称(URN)的

结合,http_URL = "http:" "//" host [ ":" port ] [ abs_path [ "?" query ]]

3. 日期/时间格式——Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822,

updated by RFC 1123,

Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036,

Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format

4. 字符集——本文档中的术语"字符集"指一种用一个或更多表格将一个八字节序

列转换成一个字符序列的方法,

charset=token

失踪字符集

5. 内容编码——内容编码主要用来允许文档压缩(信源编码)

content-coding= token

注册表包含下列标记:gzip,compress,deflate,identity

6. 传输编码——目的是能够确保通过网络安全传输(信道编码)

transfer-coding = "chunked" | transfer-extension

transfer-extension = token *( ";" parameter ),

成块传输代码

7. 媒体类型——media-type = type "/" subtype *( ";" parameter )

type = token

subtype = token

规范化和原文缺省

多部分类型

8. 产品标记——product = token ["/" product-version]

product-version = token

9. 质量值——qvalue = ( "0" [ "." 0*3DIGIT ] )| ( "1" [ "." 0*3("0") ] )

10. 语言标记——language-tag = primary-tag *( "-" subtag )

primary-tag = 1*8ALPHA

subtag = 1*8ALPHA

11. 实体标记——entity-tag = [ weak ] opaque-tag

weak = "W/"

opaque-tag = quoted-string

12. 范围单位——range-unit = bytes-unit | other-range-unit

bytes-unit = "bytes"

other-range-unit = token

本文标签: 标记编码时间