What happens when you type a Web page

Source: Internet
Author: User

The interview is often asked, what happens after you type a webpage? This is a very detailed post, http://blog.jobbole.com/84870/but too detailed, if the bar to the interviewer to finish, it is estimated that the time to eat lunch, then a lite version of it.

1. Enter the URL and press ENTER. This time the key code 13 of the Enter will be sent to the browser, and then the browser began to execute the relevant program.

2. Parse URL: Check the URL of the HTTP protocol, and request the resources of the home page, if the URL is not legal may perform search engine search.

3.DNS queries, either through the local DNS cache or by sending a request to the DNS server to obtain the ID address of the domain name.

4. Locate the server via the IP address and establish the link.

5. Use the HTTP protocol to send a request to the server.

6. The server processes the request and returns the response message.

7. The browser parses the returned information and displays it on the screen.

What happens when you type a Web page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.