What is HTTP(Hyper text transfer protocol)? How It Works

What is HTTP ? How It Works-

Do you know what HTTP is and what is HTTPS? You must have seen both these words in the address bar of your browser, you must have seen it at the beginning of the url of a website. At some point in your mind, the question must have been, what are they, how do they work and what is the difference between HTTP and HTTPS..

Today in this article, we have tried to give complete information about HTTP , we hope that by reading this, you will get the answer to all your questions related to HTTP .

What is HTTP?

The full form of HTTP is “HyperText Transfer Protocol”. This is a type of network protocol that is used in the World Wide Web, here protocol means set of rules that are used when exchanging information between web browser and server.
Whenever http is written before the address of a website (eg http://www.quickradar.net ) then any type of data (eg text, image, audio, video file etc.) is transferred between the web browser and the server. But they have to follow certain rules and these rules are defined by the HTT protocol.
This protocol determines how the format of the data being transferred will be, how its transmission will be and how the browser and server will respond to different commands.
Nowadays there is no need to type http in the browser because the browser uses by default HTTP so when you enter the address of the website directly then it automatically comes in front of http: //.

How does Hyper text transfer protocol work?

HTTP is a request-response protocol that becomes a means of communication between client and server. Here our web browser acts as a client and web-servers like Apache or IIS act as a server.
All files are stored in the server and the server responds to the client according to the client’s request.
HTTP is a stateless protocol, that is, all the requests sent by the client execute themselves separately and the connection is closed after the request is responded to.
The client sends the request of the file he needs to the server and the server after finding that file sends it to the client.
HTTP Request Message
To access any file, the client sends a request message to the respective server consisting of the request line, header, and body (optional).
1. Request line: It contains information of request method, URL and HTTP version.
  • There are several types of request type (method), such as:
    • GET: This receives the response sent by the server.
    • POST: Through this, data is sent to the server using HTML form .
    • HEAD: The response header is received from it.
    • PUT: A resource is uploaded.
    • PATCH: Resource is edited.
    • DELETE: To delete a resource.
    • TRACE: This would be used to test the server.
  • URL: The address of a file or web page available on the server.
  • HTTP version: It defines which version of HTTP  is being used.
2. Request Header Line: Through  this some additional information is sent such as date, user agent i.e. the detail of the software program used by the client, referrer etc.
3. Message Body:   This is an optional field through which a message can be sent as a comment.
HTTP Response Message
After receiving the request from the client, the server has to respond as per the request. The Response message status line consists of header lines and body.
1. Status line: It contains protocol version, status code and phrase.
  • Protocol version: It contains information of current HTTP version.
  • Status code: This is 3 digit code, this shows the status of the request.
  • Phrase: This defines the status code in the format of text.
2. Header line: This sends some additional information to the client.
3. Body: The body contains the file or document for which the client has requested. If the response contains an error message, the body is blank.

Why not HTTP Secure?

Do you know that Hyper text transfer protocol protocol is not secured? Yes, data transferred via Hyper text transfer protocol connection is not secure, it can be easily hacked. Let us know why it is not secured after all:
Data in Hyper text transfer protocol is in unencrypted form i.e. in a format that anyone can easily understand.
Hyper text transfer protocol does not require server identification, so hacker can also respond on behalf of the server. Due to all these reasons it is not secure, so sensitive information such as password, credit card details etc. are not transferred through HTTP.

Hyper text transfer protocol Wikipedia


One thought on “What is HTTP(Hyper text transfer protocol)? How It Works

Leave a Reply

Your email address will not be published. Required fields are marked *