HTTP introduction


Release date:2024-02-22 Update date:2024-02-28 Editor:admin View counts:69

Label:

HTTP introduction

HTTP protocol is the abbreviation of Hyper Text Transfer Protocol (Hypertexttransfer Protocol). It is a transport protocol used to transfer hypertext from a WWW:World Wide Web server to a local browser.

HTTP is a communication protocol based on TCP/IP to transfer data (HTML files, picture files, query results, etc.).

How HTTP works

The HTTP protocol works on the client-server architecture. As a HTTP client,the browser sends all requests to the HTTP server, the WEB server, through URL.

Web servers include: Apache server, IIS server (Internet Information Services) and so on.

After receiving the request, the Web server sends response information to the client.

The default port number for HTTP is 80, but you can also change it to 8080 or another port.

There are three points to note for HTTP:

  • HTTP is connectionless: connectionless means limiting the processing of onlyone request per connection. After the server processes the customer’s request and receives the customer’s reply, it disconnects. Transmission timecan be saved in this way.

  • HTTP is media independent: this means that any type of data can be sent overHTTP as long as the client and server know how to handle the data content. The client and server specify that the appropriate MIME-type content type.

  • HTTP is stateless: the HTTP protocol is stateless. Statelessness means that the protocol has no memory ability for transactions. The lack of state meansthat if the previous information is required for subsequent processing, it must be retransmitted, which may result in an increase in the amount of datatransmitted per connection. On the other hand, the server responds faster when it does not need previous information.

The following chart shows the HTTP protocol communication process:

Image0

Powered by TorCMS (https://github.com/bukun/TorCMS).