HTTP is a protocol which allows the fetching of resources, such as HTML documents. It is the foundation of any data exchange on the Web and it is a client-server protocol, which means requests are initiated by the recipient, usually the Web browser.
What is the HTTP Protocol
HTTP (Hypertext Transfer Protocol) is an application layer protocol that is predominantly used with the WWW (World Wide Web) in the client-server architecture, where a web browser acts as a client connecting with the webserver that hosts the website. This has been the cornerstone for data communication since 1990.
HTTP is a stateless protocol built on top of TCP protocol that can be used for a variety of applications and includes extensions for request methods, error codes, and headers.
HTTP is a communication protocol that uses TCP port 80 to deliver data (typically HTML files, multimedia files, and other types of files) on the World Wide Web. There are, however, alternative ports that can be used to perform this function.
HTTP is continuously being improved in order to respond to a growing demand for faster communications:
- HTTP/1.0, which is the oldest
- HTTP/1.1, which is the most recent. A separate connection was required in an earlier edition. The same connection might be recycled numerous times in the case of a new version.
- HTTP/2 enables a more efficient use of network resources and a reduced perception of latency by introducing header field compression and allowing multiple concurrent exchanges on the same connection… Specifically, it allows interleaving of request and response messages on the same connection and uses an efficient coding for HTTP header fields. It also allows prioritization of requests, letting more important requests complete more quickly, further improving performance.