HTTP: The Intro

HTTP: The Intro

Photo by Ian Battaglia on Unsplash

When we learn Web development, we cannot overlook how the communication occurs between the client and the server. This is what I am going to tell you now.

HyperText Transfer Protocol

This protocol allows us to fetch/send data on the web. HTTP is mainly used on the web browser, but also, cURL, postman, any other means to mediate the connection to the web server.

You may already have read my article Demystifying DB-API or if you haven't, check that out. As I explained there, HTTP also uses the client-server model. In order to communicate with the web server, user agent needs to instantiate the connection to the web server. That's what HTTP does, (makes a request) and TCP/IP works coherently to invoke the connection to the server.

HTTP is an application layer on top of the transport layer which uses the connection-based network. When we establish a connection to the web server, HTTP only requires to retain data and to display errors which means it's not connection-based and stateless protocol and TCP/IP is used to deliver the data in order for HTTP requests made and to check errors between applications communicating via IP.

When we work with HTTP, you will hear the term "Stateless" a lot. It would be helpful to understand what exactly it means as many technical terms could be obscure like this if you do not have any technical background just like me. Check out the link below!

Difference between Stateless and Stateful Protocol

This is just a basic concept of HTTP. If you feel like to learn it further, I would strongly recommend to check out MDN HTTP!