What is HTTP ?

HTTP, the Hypertext Transfer Protocol, is the application-level protocol that is used t- transfer data on the Web. HTTP comprises the rules by which Web browsers and servers exchange information. Although most people think of HTTP only in the context of the World-Wide Web, it can be, and is, used for other purposes, such as distributed object management systems.

How Does HTTP Work?

HTTP Is a request-response protocol. For example, a Web browser initiates a request t- a server, typically by opening a TCP/IP connection. The request itself comprises

- a request line,
- a set of request headers, and
- an entity.

The server sends a response that comprises

- a status line,
- a set of response headers, and
- an entity.

The entity in the request or response can be thought of simply as the payload, which may be binary data. The other items are readable ASCII characters. When the response has been completed, either the browser or the server may terminate the TCP/IP connection, or the browser can send another request.