码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2018-03-12 14:13:23      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:googl   bsp   content   mos   common   sha   targe   host   .com   

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?

标签:googl   bsp   content   mos   common   sha   targe   host   .com   

原文地址:https://www.cnblogs.com/lightwindy/p/8548918.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!