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.

Audience

本教程旨在使计算机科学毕业生和 Web 开发人员理解超文本传输协议 (HTTP) 相关从基础到高级的各个概念。

This tutorial has been prepared for computer science graduates and web developers to help them understand the basic to advanced level concepts related to Hypertext Transfer Protocol (HTTP).

Prerequisites

在继续阅读本教程之前,最好具有一些 Web 概念、Web 浏览器、Web 服务器、基于客户端和服务器体系结构的软件的基本了解。

Before proceeding with this tutorial, it is good to have a basic understanding of web concepts, web browsers, web servers, client and server architecture based software.