An introduction to HTTP

The HTTP protocol is an abbreviation for Hyper Text Transfer Protocol (hyperbly text transfer protocol) and is a delivery protocol used to transfer hyper text from a World Wide Web server to a local browser.

HTTP is a TCP/IP-based communication protocol that passes data (HTML files, picture files, query results, etc.).


How HTTP works

The HTTP protocol works on the client-service-side architecture. The browser, as the HTTP client, sends all requests via the URL to the HTTP service side, the WEB server.

Web servers are: Apache servers, IIS servers (Internet Information Services), etc.

The Web server sends a response message to the client based on the request received.

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

THREE things to note about HTTP:

  • HTTP is no connection: No connection means limiting only one request per connection. W hen the server processes the customer's request and receives the customer's response, it disconnects. In this way, you can save transfer time.

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

  • HTTP is stateless: The HTTP protocol is stateless. S tateless means that the protocol has no memory for transaction processing. T he lack of state means that if subsequent processing requires the previous information, it must be re-passed, which may result in an increase in the amount of data transferred 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:

An introduction to HTTP