HTTP Protocol
HTTP Protocol
GNANA PRAKASH
RITHVIK REDDY
INTRODUCTION
HTTP Stands for Hyper Text Transfer Protocol
It is a protocol used to access the data on the World Wide Web (www).
The protocol is known as hyper text transfer protocol because of iability to transfer
hyperlinked resources between servers and client on the internet. HTTP is the foundation of
data communication for the World Wide Web. It allows for the exchange of various types of
data, such as HTML files, images, videos, and documents.
Working of HTTP
First of all, whenever we want to open any website then first open a
web browser after thatwe 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.
Messages
HTTP messages are of two types: request and response. Both the message
types follow the same message format.
Request Message: The request message is sent by the client that consists of a request line,
headers, and sometimes a body.
Response Message: The response message is sent by the server to the client that consists of
a status line, headers, and sometimes a body.
HTTP Request
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. These
are mentioned below.
1)HTTP VERSION
2)URL(Uniform Resource Locator)
3)HTTP METHODS
4)HTTP REQUEST HEADERS
5)HTTP BODY
HTTP Method
HTTP Methods are simply HTTP Verb. In spite of being present so many HTTP
Methods, the most common HTTP Methods are HTTP GET and HTTP POST. These two are
generally used in HTTP cases. In HTTP GET, the information is received in the form of a
website.
HTTP Response
HTTP Response is simply the answer to what a Server gets when the request is raised.
There are various things contained in HTTP Response, some of them are listed below.
HTTP Status Code
HTTP Headers
HTTP Body
What are HTTP Status Codes ?
Disadvantages of HTTP
HTTP requires high power to establish communication and transfer data.
HTTP is less secure because it does not use any encryption method like HTTPS and use
TLS to encrypt regular HTTP requests and response.
HTTP is not optimized for cellular phones and it is too gabby.
HTTP does not offer a genuine exchange of data because it is less secure.