What happens when you type an URL in the browser and press enter?

Posted 轻风舞动

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了What happens when you type an URL in the browser and press enter?相关的知识,希望对你有一定的参考价值。

What happens when you type an URL in the browser and press enter?

1. You type maps.google.com into the address bar of your browser.

2. The browser checks the cache for a DNS record to find the corresponding IP address of maps.google.com.

3. If the requested URL is not in the cache, ISP’s DNS server initiates a DNS query to find the IP address of the server that hosts maps.google.com.

4. Browser initiates a TCP connection with the server.

5. The browser sends an HTTP request to the web server.

6. The server handles the request and sends back a response.

7. The server sends out an HTTP response.

8. The browser displays the html content (for HTML responses which is the most common).

 

以上是关于What happens when you type an URL in the browser and press enter?的主要内容,如果未能解决你的问题,请参考以下文章

What really happens when you navigate to a URL

What happened when new an object in JVM ?

What happens when a SQL Query runs?

You never know what's going to happen

What makes an inferred latch? how To avoid creating inferred latches? when do you know you need lat

当输入URL后,会发生什么[转]