What is HTTP
What is HTTP
Hypertext Transfer Protocol is a set of rule which is used for transferring the files like, audio, video, graphic image, text and other multimedia files on the WWW (World Wide Web). HTTP is an application-level protocol. The communication usually takes place through TCP/IP sockets, but any reliable transport can also be used. The standard (default) port for HTTP connection is 80, but other port can also be used. The first version of HTTP was HTTP/0.9, which was introduced in 1991. and latest version of HTTP is HTTP/3, which was published in September 2019. It is an alternative to its processor HTTP/2.
important things about HTTP
Connectionless: HTTP is connectionless. When the HTTP client opens the browser, the browser initiates an HTTP request. After making the request, the client disconnect from the server and wait for the response. When the response is ready, the server re-establish the connection again and delivers the response to the client, after which the client disconnects the connection. So both client and server know about each other during the current request and response only.
Media Independent: HTTP is media independent. HTTP can deliver any sort of data, as long as the two computers can read it.
Stateless: The HTTP is stateless. The client and server just know about each other just during the current request. If the connection is closed, and two computers want to connect again, they need to provide information to each other anew, and the connection is handled as the very first one.