Hyper Text Transfer Protocol is referred to as HTTP. Tim Berner is the inventor. Hyper Text is a specific kind of text that has been particularly programmed using Hyper Text Markup Language (HTML), a standard coding language. The most recent version of HTTP is HTTP/2. The most recent version of HTTP, released in 2022, is HTTP/3.
Hyper Text Transfer Protocol is the name of the protocol that allows hypertext to be transferred between two computers.
A web browser and a web server can communicate by using the HTTP protocol. It is a collection of guidelines for data movement between computers. On the World Wide Web, information is shared in the form of text, photos, and other multimedia assets. A user indirectly utilises HTTP each time they launch their web browser. It is an application protocol for hypermedia information systems that are dispersed and collaborative.
Operation of HTTP
Whenever we wish to access a website, we first open a web browser and then type the website's URL (such as www.facebook.com). The Domain Name Server (DNS) is currently receiving this URL. The IP address associated with this URL will then be returned to the web browser by DNS once they have checked entries for it in their database. The browser may now communicate with the server directly by sending requests.
The connection will be ended after the client receives data from the server. The client and server should need to re-establish their connection whenever we need anything different from the server.
HTTP Request
- HTTP Version
- URL
- HTTP Method
- HTTP Request Headers
- HTTP Body
Headers for HTTP Requests
Request Body for HTTP
HTTP Procedure
HTTP Reaction
- HTTP Status Code
- HTTP Headers
- HTTP Body
Headers for HTTP Responses
Response Body for HTTP
Status Code for HTTP
- Informational
- Successful
- Re-directional
- Client-Error
- Server-Error
History of HTTP
- Version 0.9 of HTTP was the initial release of the protocol, released in 1991.
- HTTP version 1.0: RFC 1945, or the Request for Comments, was first made available in 1996.
- HTTP version 1.1: RFC 2068 was released in January 1997 along with HTTP version 1.1. Updates and enhancements to the HTTP version 1.1 standard were published in June 1999 under RFC 2616.
- HTTP version 2.0: On May 14, 2015, RFC 7540, the HTTP version 2.0 standard, was released.
- 3.0 of HTTP: The preceding RFC draft served as the basis for HTTP version 3.0. It is now known as Hyper-Text Transfer Protocol (QUIC), a Google-developed transport layer network protocol.
Characteristics of HTTP
- The client submits a request to the server, and the server and client are only acquainted for the duration of the bid and response time.
- As long as the client and server are compatible, any kind of content may be shared.
- Clients and servers are disconnected once data is shared.
- It is a protocol for requests and responses that is based on what the client and server need.
- This protocol is known as connection-less because, after the connection is ended, neither the client nor the server retains any memory of one another.
- The reason it's a stateless protocol is that it allows communication even when neither the client nor the server expects anything from the other.
Benefits of HTTP
- There are fewer simultaneous connections, which results in low memory and CPU utilisation.
- There is less network congestion since there are fewer TCP connections.
- Latency is decreased since handshaking is completed at the first connection step, eliminating the need for it for ensuing requests.
- It is possible to report the mistake without cutting the connection.
- HTTP permits requests and answers to be pipelined via HTTP.
The drawbacks of HTTP
- For HTTP to establish communication and move data, it needs a lot of electricity.
- Because HTTP does not employ TLS to encrypt standard HTTP requests and responses, it is less secure than HTTPS.
- HTTP is too erratic and not mobile phone optimised.
- Due to its lower level of security, HTTP does not provide a true data exchange.
- The server must wait for data completion and cannot be accessible for other clients during this period since the client does not terminate the connection until it gets all of the data from the server.
Cookies in HTTP
Status code for HTTP
- 1x Informative
- 2xx Achievement
- 3xx Reorientation
- 4xx Client Mistake
- 5xx Error on the Server