HTTP works in a request-response manner. Let's take an example to understand this model better.
The following example illustrates the basic request-response model of communication between a web browser and a server over HTTP. The following sequence diagram illustrates the request and response messages sent between the client and server:
Here is the detailed explanation for the sequence of actions shown in the preceding diagram.
The user enters http://www.example.com/index.html in the browser and then submits the request. The browser establishes a connection with the server and sends a request to ...