Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第十九题:从输入一个url到呈现网页,都经历了那些过程 #19

Open
GenXiaoLe opened this issue Sep 3, 2019 · 1 comment
Labels
HTTP 超文本传输协议

Comments

@GenXiaoLe
Copy link
Collaborator

简述每个阶段以及期间所发生的事情

@GenXiaoLe GenXiaoLe added the HTTP 超文本传输协议 label Sep 3, 2019
@MMmaXingXing
Copy link

大致分为如下七步

1、输入网址。

2、发送到DNS服务器,并获取域名对应的web服务对应的IP的地址。

3、与WEB服务器建立TCP连接(三次握手)。

4、浏览器向WEB服务器发送http请求。

5、WEB服务器响应请求并返回指定url的数据(或错误信息 或重定向地址)。

6、浏览器下载WEB服务器返回的数据以及解析html源文件。

7、生成DOM树,解析CSS和JS,渲染页面,直至显示完成。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HTTP 超文本传输协议
Projects
None yet
Development

No branches or pull requests

2 participants