Definition of HTTP
HTTP (Hypertext Transfer Protocol) is a way of data communication for the web. HTTP defines how the internet works while delivering the web pages. HTTP is purely TCP/IP based protocol and things like text, audio, videos, images can be transmitted through it.
The cycle of HTTP works on request and response. Here the client requests a web page and got a response from server. As an example, if you browse to webshree.com, this means you are requesting a web page from server, and the server will deliver you response.
HTTP – A Stateless Protocol
HTTP is a stateless protocol which means every single transaction you made through HTTP is independent in nature. However, this can be delivered through using HTTP cookies, server side sessions, variables, URL rewriting.
When a client wants to browse a website first thing that happens is that request is sent to the server known as HTTP message. Thereafter, the server will prepare a response and send it back. The message will be different depending on its message response and request.