Http 简明教程
HTTP Tutorial
超文本传输协议(HTTP)是用于分布式、协作、超媒体信息系统的应用程序级协议。自 1990 年以来,它是万维网(即互联网)数据通信的基础。HTTP 是通用且无状态的协议,它还可以用于其他用途,同时使用其请求方法、错误代码和标题的扩展程序。
The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. This is the foundation for data communication for the World Wide Web (i.e. internet) since 1990. HTTP is a generic and stateless protocol which can be used for other purposes as well using extensions of its request methods, error codes, and headers.
本教程基于 RFC-2616 规范,其中定义了称作 HTTP/1.1 的协议。HTTP/1.1 是原始 HTTP(HTTP/1.0)的修订版。HTTP/1.0 和 HTTP/1.1 之间的一个主要区别是,HTTP/1.0 为每个请求/响应交换使用一个新连接,而 HTTP/1.1 连接可用于一个或多个请求/响应交换。
This tutorial is based on RFC-2616 specification, which defines the protocol referred to as HTTP/1.1. HTTP/1.1 is a revision of the original HTTP (HTTP/1.0). A major difference between HTTP/1.0 and HTTP/1.1 is that HTTP/1.0 uses a new connection for each request/response exchange, where as HTTP/1.1 connection may be used for one or more request/response exchanges.