0% found this document useful (0 votes)
11 views

HTTP Protocol

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

HTTP Protocol

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

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 Request Headers


HTTP Request Headers generally store information in the form of key-value
and must be present in each HTTP Request. The use of this Request Header is to provide
core information about the client’s information, etc.
HTTP Request Body
HTTP Request Body simply contains the information that has to be transferred.
HTTP Request has the information or data to be sent to these browsers.

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 ?

HTTP Protocol is used everywhere from the server page to


each service communication, deploying service to
monitoring service. HTTP codes give an extension of HTTP
protocol to debug network problems using curl, telnet able
to check server availability, service responses
HTTP status code is used for search engine optimization of
how your pages get indexed, as well as how search engines
perceive the performance of your site.

Why Do We Need Many HTTP Statuses?


It reduces the complexity of client and server errors.
It is also one reason why Microservice and HATEOAS are
easy to definable.
Advantages of HTTP
Memory usage and CPU usage are low because of fewer simultaneous
connections.
Since there are few TCP connections hence network congestion is less.
Since handshaking is done at the initial connection stage, then latency is reduced
because there is no further need for handshaking for subsequent requests.

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.

You might also like