DEV Community

PRAKRUTI PETHANI
PRAKRUTI PETHANI

Posted on

"HTTP": The Backbone Of The Web

prepare by :
24ce096:pethani prakruti
24ce094:patel shaswat

Hypertext Transfer Protocol (HTTP) is the foundational application-layer protocol of the World Wide Web.

It enables communication between clients (like web browsers) and servers through a simple request-response model.

http protocol use port no.80 it means all the traffic related to http are forward and received at port no.80

purpose of http to transfer hyper media document/multi media document like html


components:

connection :the client makes a connection to the server.
request: the client requests information from the server.
response: the server either provides the information to the client or refuses to provide the information.
close :either or both parties terminates the transaction.


What is the Use of HTTP?

HTTP allows users to load web pages by requesting resources from servers using URLs.

It supports various methods like GET (retrieve data) and POST (submit data), enabling interactive web applications.

Facilitates the transfer of web content, including text, images, scripts, and multimedia.

Powers APIs and machine-to-machine communication beyond just browsers.

Enables dynamic web pages by fetching parts of documents on demand.


Advantages of HTTP

Simplicity: Easy to implement and understand with a clear request-response pattern.

Extensibility: Supports multiple methods and headers, allowing rich interactions.

Statelessness: Each request is independent, simplifying server design and scalability.

Wide Adoption: Supported by all web browsers and servers worldwide.

Evolvability: HTTP/2 and HTTP/3 improve speed, security, and efficiency over earlier versions.


Disadvantages of HTTP

Stateless Nature: Requires additional mechanisms (like cookies) to maintain user sessions.

Security Risks: Original HTTP is unencrypted, vulnerable to eavesdropping and man-in-the-middle attacks (mitigated by HTTPS).

Latency: Multiple requests can cause delays; HTTP/1.1 had limitations in connection reuse.

Overhead: Headers and repeated requests add extra data transfer.

Complexity in Modern Web: Advanced features require more sophisticated handling and protocols.

prepare by:
24ce096:pethani prakruti
24ce094:patel shaswat


reference link:https://youtu.be/Nj8pGsBvcmo?si=f4P33r6PqsI5jFxV

Top comments (0)