What is HTTP? Explain its uses?

HTTP stands for HyperText Transfer Protocol. Tim Berner invents it. HyperText is the type of text which is specially coded with the help of some standard coding language called HyperText Markup Language (HTML). HTTP/2 is the successor version of HTTP, which was published on May 2015. HTTP/3 is the latest version of HTTP, which is published in 2022.

The protocol used to transfer hypertext between two computers is known as HyperText Transfer Protocol. 
HTTP provides a standard between a web browser and a web server to establish communication. It is a set of rules for transferring data from one computer to another. Data such as text, images, and other multimedia files are shared on the World Wide Web. Whenever a web user opens their web browser, the user indirectly uses HTTP. It is an application protocol that is used for distributed, collaborative, hypermedia information systems. 
First of all, whenever we want to open any website then first open a web browser after that we will type the URL of that website (e.g., www.facebook.com ). This URL is now sent to Domain Name Server (DNS). Then DNS first check records for this URL in their database, then DNS will return the IP address to the web browser corresponding to this URL. Now the browser is able to send requests to the actual server. 

After the server sends data to the client, the connection will be closed. If we want something else from the server we should have to re-establish the connection between the client and the server. 

HTTP request is simply termed as the information or data that is needed by Internet browsers for loading a website. This is simply known as HTTP Request.

There is some common information that is generally present in all HTTP requests.

HTTP is IP based communication protocol that is used to deliver data from server to client or vice-versa. 

The server processes a request, which is raised by the client, and also server and client know each other only during the current bid and response period. 
Any type of content can be exchanged as long as the server and client are compatible with it. 
Once data is exchanged, servers and clients are no longer connected. 
It is a request and response protocol based on client and server requirements. 
It is a connection-less protocol because after the connection is closed, the server does not remember anything about the client and the client does not remember anything about the server. 
It is a stateless protocol because both client and server do not expect anything from each other but they are still able to communicate. 
Connectionless protocol: HTTP is a connectionless protocol. HTTP client initiates a request and waits for a response from the server. When the server receives the request, the server processes the request and sends back the response to the HTTP client after which the client disconnects the connection. The connection between client and server exist only during the current request and response time only.
Media independent: HTTP protocol is a media independent as data can be sent as long as both the client and server know how to handle the data content. It is required for both the client and server to specify the content type in MIME-type header.
Stateless: HTTP is a stateless protocol as both the client and server know each other only during the current request. Due to this nature of the protocol, both the client and server do not retain the information between various requests of the web pages.

Comments

Popular posts from this blog

Java Quick revision

Quick revision for software engineering by vikatu

QUICK REVISION FOR CYBER