开发者

How browser retrieve web page

开发者 https://www.devze.com 2022-12-21 23:27 出处:网络
I have little question about how web browser retrieve webpage?开发者_如何学Python I know this User request www.example.com --> web

I have little question about how web browser retrieve webpage?开发者_如何学Python

I know this

User request www.example.com --> web browser resolve DNS of www.example.com using DNS Server --> It got something like 156.23.15.12 --> then web browser request 156.23.15.12 --> It retrive all document and render web page and display it to user. Am I right?

Now My Question is, is web broswer request ISP to resolve DNS and than directly take to the server. OR is it request only IP or that domain and then retrive web page with the IP?

I think you can understood what I want to say


If I understand your question, you're asking whether 1) your computer resolves the name and then connects directly to the web server's IP OR 2) your computer only sends a request to your ISP and then waits for the ISP to download the page for you?

In general, your computer connects directly to the web server.

It's also possible to connect to an intermediate server which does everything for you - resolves the name, connects to the end server, downloads content and then sends it back to your ocmputer. That intermediate computer is called an HTTP proxy.

So if I understood your question, it depends on how your network is set up. The most common setup is 1) without a proxy.

0

精彩评论

暂无评论...
验证码 换一张
取 消