Lifecycle of a URL access on a Browser

Step 1

  • DNS lookup
    • Browser cache
    • OS cache
    • Router cache
    • ISP DNS lookup

Step 2

  • Connection setup
    • 3 phase TCP connection

Step 3

  • Browser sends HTTP request
    • GET
    • POST (for auth and form submission)

Step 4

  • Server handles the request and prepares a response.
    • Server could be a web server (Apache, IIS)
    • Handler parses the request header
    • Handler can be coded on ASP, PHP etc.

Step 5

  • Server responds with HTTP header having status code

Step 6

  • Browser gets HTML data
  • It renders tags
  • Fetches images, CSS using GET (usually cached)

Written with StackEdit.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: