天空小小岛技术论坛

 找回密码
 注册
搜索
查看: 8723|回复: 0
打印 上一主题 下一主题

RFC2616(HTTP1.1协议)中文版

[复制链接]
跳转到指定楼层
1#
八号 发表于 2012-9-13 15:07:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1 引论
1.1 目的
1.2 要求
1.3 术语
1.4 总体操作

2 符号习惯和一般语法
2.1 扩充的BNF(扩充的 巴科斯-诺尔范式)
2.2基本规则 (basic rule)

3 协议参数
3.1 HTTP版本
3.2 统一资源标识符(URI)
3.2.1一般语法
3.2.2 http URL
3.2.3 URI 比较
3.3 日期/时间格式(Date/Time Formats)
3.3.1完整日期 (Full Date)
3.3.2 Delta Seconds
3.4 字符集
3.4.1丢失的字符集(Missing Charset)
3.5 内容编码(Content Codings)
3.6 传输编码 (Transfer Codings)
3.6.1块传输编码(Chunked Transfer Coding)
3.7 媒体类型(Media Type)
3.7.1规范化和文本缺省 (Canonicalization and Text Defaults)
3.7.2多部分类型(Multipart type)
3.8 产品标记 (product Tokens)
3.9 质量值(Quality Values)
3.10 语言标签 (Language Tags)
3.11 实体标签 (Entity Tags)
3.12 范围单位(Range Units)

4 HTTP消息
4.1 消息类型(Message Types)
4.2 消息头 (Message Headers)
4.3 消息主体 (Message Body)
4.4 消息的长度(Message Length)
4.5 常用头域(General Header Fields)

5 请求(Request)
5.1 请求行 (Request-Line)
5.1.1方法 (Method)
5.1.2请求URL(Request-URI)
5.2请求资源 (The Resource Identified by a Request)
5.3请求报头域 (Request Header Fields)

6 响应 (Response)
6.1 状态行 (Status-Line)
6.1.1状态码与原因短语 (Status Code and Reason Phrase)

7 实体(Entity)
7.1 实体报文域(Entity Header Fields)
7.2 实体主体(Entity Body)
7.2.1类型(Type)
7.2.2实体主体长度(Entity Length)

8 连接
8.1 持续连接(Persistent Connection)。
8.1.1目的
8.1.2总体操作
8.1.2.1 协商(Negotiation)
8.1.2.2 流水线(pilelining)
8.1.3代理服务器 (Proxy Servers)
8.1.4实际的考虑 (Practical Considerations)
8.2 消息传送要求(Message Transmission Requirements)
8.2.1持续连接与流量控制 (Persistent Connections and Flow Control)
8.2.2监视连接中出错状态的消息
8.2.3 100状态码的用途
8.2.4服务器过早关闭连接时客户端的行为

9 方法定义(Method Definitions)
9.1 安全和等幂(Idempotent)方法
9.1.1安全方法(Safe Methods)
9.1.2等幂方法(Idempotent Mehtods)
9.2 OPTIONS(选项)
9.3 GET
9.4 HEAD
9.5 POST
9.6 PUT
9.7 DELETE(删除)
9.8 TRACE
9.9 CONNECT(连接)

10.状态码定义
10.1 通知的 1xx
10.1.1 100 继续 (Continue)
10.1.2 101切换协议 (Switching Protocols)
10.2 成功 2xx
10.2.1 200 OK
10.2.2 201 已创建(Created)
10.2.3 202 接受(Accepted)
10.2.4 203 非权威信息(Non-Authoritative information)
10.2.5 204 无内容 (No Content)
10.2.6 205 重置内容(Reset Content)
10.2.7 206 部分内容(Partial Content)
10.3 重新定向 3xx.
10.3.1 300 多个选择.(Multiple Choices)
10.3.2 301 永久移动 (Moved Permanently)
10.3.3 302 发现(Found)
10.3.4 303 见其他(See Other)
10.3.5 304 没有被改变(Not Modified)
10.3.6 305 使用代理服务器 (User Proxy)
10.3.7 306没有使用的(unused)
10.3.8 307临时重发(Temporary Redirect)
10.4 客户错误 4xx
10.4.1 400 坏请求(Bad Request)
10.4.2 401 未授权的 (Unauthorized)
10.4.3 402 必需的支付 (Payment Required)
10.4.4 403 禁用 (Forbidden)
10.4.5 404 没有找到(Not Found)
10.4.6 405 不被允许的方法(Method Not Allowed)
10.4.7 406 不接受的 (Not Acceptable)
10.4.8 407 代理服务器授权所需(Proxy Authentication Required)
10.4.9 408 请求超时(Request Timeout)
10.4.10 409 冲突 (Confilict)
10.4.11 410 不存在(gone)
10.4.12 411 必需的长度 (Length Required)
10.4.13 412 先决条件失败 (Precondition Failed)
10.4.14 413 请求实体太大
10.4.15 414 请求URI太长(Request-URI Too Long)
10.4.16 415 不被支持的媒体类型(Unsupported Media Type)
10.4.17 416 请求范围不满足 (Requested Range Not Satisfiable)
10.4.18 417 期望失败
10.5 服务器错误 5xx (Server Error)
10.5.1 500 服务器内部错误 (Internal Server Error)
10.5.2 501 不能实现 (Not Implemented)
10.5.3 502 坏网关 (Bad Gateway)
10.5.4 503 难以获得的服务.(Service Unavailable)
10.5.5 504 网关超时(Gateway Timeout)
10.5.6 505  HTTP版本不支持 (HTTP version Not Supported)

11.入口验证(Access Authentication)

12.内容协商 (Content Negotiation)
12.1 服务器驱动协商(Server-driven Negotiation)
12.2 代理驱动协商 (Agent-driven Negotiation)
12.3 透明协商(Transparent Negotiation)

13 HTTP中的缓存
13.1.1缓存正确性(Cache Correctness)
13.1.2警告信息(Warnings)
13.1.3缓存控制机制 (Cache-control Mechanism)
13.1.4显示的用户代理警告(Explicit User Agent Warnings)
13.1.5规则和警告的例外情况
13.1.6由客户控制的行为(Client-controlled Behavior)
13.2 过期模型 (Expiration Model)
13.2.1 服务器指定模型(Server-Specified Expiratiion)
13.2.2 启发式过期
13.2.3  年龄(Age)计算
13.2.4 过期计算(Expiration Calculations)
13.2.5澄清过期值(Disambiguation Expiration Values)
13.2.6澄清多个响应(Disambiguating Multiple Response)
13.3 验证模型(Validation Model)
13.3.1最后修改日期 (Last-Modified Dates)
13.3.2 实体标签缓存验证器(Entity Tag Cache Validators)
13.3.3 强,弱验证器 (Weak and Strong Validators)
13.3.4 关于何时使用实体标签和最后修改时间的规则
13.3.5非验证条件(Non-validating Conditionls)
13.4 响应的可缓存性(Response Cacheability)
13.5 从缓存里构造响应
13.5.1End-to-end和Hop-by-hop头域
13.5.2不可更改的头域 (Non-modifiable Headers)
13.5.3联合头域(Combining Headers)
13.5.4联合字节范围(Combing Byte Ranges)
13.6 缓存已经协商过的响应(Caching Negotiated Responses)
13.7 共享和非共享缓存 (Shared and Non-Shared Caches)
13.8 错误和不完全的响应缓存行为
13.9 GET 和 HEAD 的副作用(Side Effects of GET and HEAD)
13.10 在更新或删除后的无效性
13.11 强制写通过( Write-Through Mandatory)
13.12 缓存替换 (Cache Replacement)
13.13 历史列表 (History Lists)

14 头域定义
14.1  Accept
14.2  Accept-Charset
14.3  Accept-Encoding
14.4  Accept-Language
14.5  Accept-Range
14.6  Age
14.7  Allow
14.8 Authorization (授权)
14.9  Cache-Control
14.9.1什么是可缓存的
14.9.2什么能被缓存保存
14.9.3对基本过期机制的改进
14.9.4缓存重验证和加载控制(Cache Revalidation and Reload Controls)
14.9.5 No-Transform缓存控制指令
14.9.6缓存控制扩展(Cache control Extendions)
14.10 Connection
14.11 Content-Encoding
14.12 Content-Language
14.13 Content-Length
14.14 Content-Location
14.15 Content-MD5
14.16 Content-Range
14.17 Content-Type
14.18 Date
14.18.1没有时钟的源服务器运作
14.19 ETag
14.20 Expect
14.21 Expires
14.22 From
14.23 Host
14.24 If-Match
14.25 If-Modified-Since
14.26 If-None-Match
14.27 If-Range
14.28 If-Unmodified-Since
14.29 Last-Modified
14.30 Location
14.31 Max-Forwards
14.32 Pragma
14.33 Proxy-Authenticate
14.34 Proxy-Authorization
14.35 Range
14.35.1字节范围 (Byte Ranges)
14.35.2范围请求(Range Retrieval Requests)
14.36 Referer
14.37 Retry-After
14.38 Server
14.39 TE
14.40 Trailer
14.41 Transfer-Encoding
14.42 Upgrade
14.43 User-Agent
14.44 Vary
14.45 Via
14.46 Warning
14.47 WWW-Authenticate

15.安全考虑 (Security Consideration)
15.1 个人信息 (Personal Information)
15.1.1服务器日志信息的滥用 (Abuse of Server Log Information)
15.1.2敏感信息的传输 (Transfer of Sensitive Inforamtion)
15.1.3 URI中敏感信息的编码(Encoding Sensitive Information in URI’s)
15.1.4连接到Accept头域的隐私问题
15.2 基于文件和路径名称的攻击
15.3 DNS欺骗
15.4 Location头域和欺骗
15.5 Content-Disposition的问题
15.6 授权证书和空闲客户端


RFC2616(HTTP)中文版 .pdf (695.56 KB, 下载次数: 13)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|天空小小岛  |京ICP备2025130156号|

GMT+8, 2025-6-22 16:40 , Processed in 0.117069 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表