Explain in detail the steps/processes, occur from the moment, type a URL in a browser and hit enter

Source: Internet
Author: User

In a extremely rough and simplified sketch, assuming the simplest possiblehttp request, no proxies and IPV4 (this would w Ork similarly for ipv6-onlyclient, but I had yet to see such workstation):

  1. Browser checks cache; If requested object is in the cache and is fresh, skip to#9

  2. Browser asks OS for server ' s IP address

  3. OS makes a DNS lookup and replies the IP address to the browser

  4. Browser opens a TCP connection to server (this step was much more

    Complex with HTTPS)

  5. Browser sends the HTTP request through TCP connection

  6. Browser receives HTTP response and may close the TCP connection, or

    Reuse it for another request

  7. Browser checks if the response is a redirect (3xx result status codes),

    Authorization Request (401), error (4XX and 5xx), etc; These is handled

    Differently from normal responses (2xx)

  8. If cacheable, response is stored in cache

  9. Browser decodes response (e.g. if it ' s gzipped)

  10. Browser determines-do with response (e.g. are it a HTML page, is it

    An image, was it a sound clip?)

  11. Browser renders response, or offers a download dialog for unrecognized

    Types

Again, discussion of each of these points has filled countless pages; Take Thisas a starting point. Also, there is many other things happening in parallel to

This (processing typed-in address, adding page to browser history, displayingprogress to user, notifying plugins and Exten sions, rendering the page Whileit ' s downloading, pipelining, connection tracking for keep-alive, etc.).

Explain in detail the steps/processes, occur from the moment, type a URL in a browser and hit enter

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.