Sample Example of HTTP Request: Now let’s put it all together to form an HTTP request. All these header fields are added together to form an HTTP request. Other header fields like the Accept-Language header tells the server which language the client is able to understand. It also has additional information like request header fields( User-Agent) for that allows the client to pass information about the request, and about the client itself, to the server. Cookies are designed for websites to remember stateful information (items in the shopping cart or wishlist for a website like Amazon) or to record the user’s browsing history etc.
![search google or type a url search google or type a url](https://vividreal.com/wp-content/uploads/2020/05/4.png)
It will also send the cookies that the browser has for this domain. The browser sends a GET request to the server asking for webpage. The browser sends an HTTP request to the server. Hence, a reliable connection is established and data transmission can start now.Ĥ.
![search google or type a url search google or type a url](https://pics.me.me/google-school-idol-di-search-google-or-type-url-danbooru-7972704.png)
Check OS Cache: If the browser doesn't contain the cache then it requests to the underlying Operating System as the OS also maintains a cache of the DNS records.It is the first place to run a DNS query. Check Browser Cache: The browser maintains a cache of the DNS records for some fixed amount of time.
![search google or type a url search google or type a url](https://1.bp.blogspot.com/_annTPGBcsB4/SU88ZznojPI/AAAAAAAABTo/LqMopebs-Io/s400/hangar.jpg)
The DNS checks at the following places for the IP address. So, we only remember the name of the website and the mapping of the name with the IP address is done by the DNS. We can access the website directly by typing the IP address but imagine remembering a group of numbers to visit any website. The browser looks for the IP address of the domain name in the DNS(Domain Name Server).ĭNS is a list of URLs and their corresponding IP address just like the telephone book has phone numbers corresponding to the names of the people. When you type any URL you basically want to reach the server where the website is hosted.
![search google or type a url search google or type a url](https://i.ytimg.com/vi/UoAW36BMn-k/maxresdefault.jpg)
So you type in the address bar of your browser. Suppose you want to visit the website of AfterAcademy. In this blog, we will see what happens in the background, step by step when we type any URL. Ever wondered what happens when you type a URL in the browser? It is a commonly asked question in technical interviews.