What happened when you type URL in browser and press ENTER ?

Here are the simplest steps followed when you time URL in browser and press ENTER -
  1. Browser checks cache; if requested object is in 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 is 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 are 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 what to do with response (e.g. is it a HTML page, is it an image, is it a sound clip?)
  11. browser renders response, or offers a download dialog for unrecognized types

         Also, there are many other things happening in parallel to this (processing typed-in address, adding page to browser history, displaying progress to user, notifying plugins and extensions, rendering the page while it's downloading, pipelining, connection tracking for keep-alive, etc.).

Useful links:



Useful watch:

Comments

  1. SelamatPetang,

    Interesting piece!Great to see someone write What happened when you type URL in browser and press ENTER ? who is not a fanatic or a complete skeptic.


    But now it was not letting me use the forum without putting a new nickname and new email address. Everytime I was putting my original nickname udasxilinx it was saying nickname is already used. But this does not make sense, because the nickname is used by me and I am using same email to login. Also it is not letting me use my actual email id when I used in as forum email. So I am forced to use a different nickname (udayxilinx) and different email address (uday.das@gmail.com) though from the root I am using the same old company's email id.

    By the way do you have any YouTube videos, would love to watch it. I would like to connect you on LinkedIn, great to have experts like you in my connection (In case, if you don’t have any issues).

    Regards,
    Radhey

    ReplyDelete
  2. Hello,


    A really interesting, clear and easily readable What happened when you type URL in browser and press ENTER ? article of interesting and different perspectives.I will clap. So much is so well covered here. AWS Training USA


    However, when .ebignore is present in yout project directory, the EB CLI doesn't use git commands and semantics to create your source bundle. This means that EB CLI ignores files specified in .ebignore, and includes all other files. In particular, it includes uncommitted source files.

    Anyways great write up, your efforts are much appreciated.

    Grazie,
    Radhey

    ReplyDelete
  3. Hello There,

    Seems like I won the lottery here….This is a treasure box of blogs and your folks are like leprechauns! Phenomenal read on What happened when you type URL in browser and press ENTER ?!

    We have a t2.micro instance (built from amzn-ami-hvm-2016.09.1.20170119-x86_64-gp2) on which a customized WordPress is deployed. Following various posts here and elsewhere, AWS Training , various parameters for Apache and MySQL have been set to accommodate the 'size' of the host, including the deployment of a swap partition. The site has been running without issue for weeks.

    Please keep providing such valuable information.

    Shukran,
    Preethi.

    ReplyDelete

Post a Comment