HTTP
HTTP
HTTP stands for “Hypertext Transfer Protocol.” It is a set of rules for sharing data on the World Wide
Web (WWW). HTTP helps web browsers and servers communicate, allowing people to access and
share information over the internet.
Key Points
Basic Structure: HTTP forms the foundation of the web, enabling data communication and file
sharing.
Web Browsing: Most websites use HTTP, so when you click on a link or download a file,
HTTP is at work.
Client-Server Model: HTTP works on a request-response system. Your browser (client) asks
for information, and the website’s server responds with the data.
Application Layer Protocol: HTTP operates within the Internet Protocol Suite, managing how
data is transmitted and received.
What is HyperText?
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.
HTTP Response
Characteristics of HTTP: 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.
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.
The error can be reported without closing the connection.
HTTP allows HTTP pipe-lining of requests or responses.
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
uses TLS to encrypt regular HTTP requests and responses.
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.
The client does not close the connection until it receives complete data from the server; hence,
the server needs to wait for data completion and cannot be available for other clients during this
time.