如果我们在浏览器中键入url会发生什么? [英] What will happen wen we type url in broweser?

查看:82
本文介绍了如果我们在浏览器中键入url会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何好友都可以告诉我上述问题的简要说明。

Can any buddy tell me the brief description of the above question.

推荐答案

[ ^ ]


忽略某种自动单击返回时,将显示匹配并显示匹配的访问URL以及输入此内容:



浏览器将解析URL并将其拆分为不同的部分(请参阅统一资源定位器 - 维基百科,免费百科全书 [ ^ ]部分)。缺少可选部分将初始化为默认值(方案/协议:HTTP,端口:协议的默认端口,例如80与HTTP)。



浏览器比查询IP如果主机部分不是IP地址,则使用DNS的主机部分的地址。如果成功,他将使用IP地址和端口号连接服务器。



以下通信取决于使用的协议。
Ignoring some kind of auto completition and showing visited URLs that match while typing this will happen when clicking return:

The browser will parse the URL and split it into different parts (see Uniform Resource Locator - Wikipedia, the free encyclopedia[^] for the parts). Missing optional parts will be initiliased with defaults (scheme/protocol: HTTP, port: default port for protocol, e.g. 80 with HTTP).

The browser than queries the IP address for the host part using DNS if the host part is not already an IP address. If that is successful he will connect the server using the IP address and port number.

The following communication depends on the used protocol.


这篇关于如果我们在浏览器中键入url会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆