
How a Request Travels from Client to Server
Title: How a Request Travels from Client to Server Whenever I open a website or click something in an app, a request is sent from my device to a server. This happens very fast, but there are multiple steps involved. In this blog, I am explaining how a request starts from the client and finally reaches the server. What is a client and server Client means the user side, like my mobile, laptop, or browser. Server is a system that stores data and responds to requests. Step 1: User action The process starts when I do some action like typing a URL in the browser or clicking a button. Example: I type amazon.com in the browser. Step 2: DNS resolution The browser cannot understand amazon.com directly. It needs an IP address. So it asks the DNS system to convert the domain name into an IP address. After this step, the browser gets something like 54.x.x.x. Step 3: Creating the request Now the browser prepares an HTTP request. This request contains method like GET or POST URL headers sometimes bod
Continue reading on Dev.to Tutorial
Opens in a new tab




