How HTTP request and response works
What you will learn here about HTTP request and response works
- How HTTP request and response works
HTTP communication involves two important terms and those are Client and Server.
Client: Client is the one who makes the HTTP request. For example Browser is the client.
Server: The server is the one who receives the request and sends the response. Basically server is the piece of code that is responsible for accepting the request and sending the response back. usually, the computer on which server code runs is called server. Simple HTTP communication is shown below
Modified HTTP communication is shown below
Whenever the client or user makes a request using URL then the domain name of the website is responsible for taking requests to the server and then request is forward to a particular web page which is shown below.
In the above example, www.bytesofgigabytes.com will make a request to the bytesofgigabytes.com server and then from the bytesofgigabytes.com server to the post1 web page and then the response is sent back to the client or user.