How a browser retrieves a web page

I have few questions about how a web browser retrieves a web page?

I know it

A user request www.example.com β†’ a web browser resolves DNS www.example.com using a DNS server β†’ It received something like 156.23.15.12 β†’ , then a web browser request 156.23.15.12 β†’ Extract all documents and render a web page and display it to the user. I'm right?

Now my question is a request from the ISP web browser to resolve DNS and connect directly to the server. OR , does it only ask for IP or this domain, and then retrieve the web page with IP?

I think you can understand what I want to say.

+4
source share
1 answer

If I understand your question, you ask: 1) does your computer resolve the name and then connects directly to the IP web server OR 2) does your computer send a request to your Internet provider and then it waits for the Internet provider to load the page for you?

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

You can also connect to an intermediate server that does everything for you - resolves the name, connects to the destination server, downloads the content, and then sends it back to your ocmputer. This intermediate computer is called an HTTP proxy .

So, if I understand your question, it depends on how your network is configured. The most common installation is 1) without a proxy.

+1
source

Source: https://habr.com/ru/post/1302675/


All Articles