What is the actual process that will take place when we type an url in the address bar of the browser -
possible duplicates:
what happens when type in url in browser
what happen after press enter web browser after typing google.com
recently have attended interview, in interview questioned "what actual process happen when type url in address bar of browser , click enter" example "www.gmail.com"....what process. , questioned server will working purpose.......
this pretty off topic site, might fun try answer complex question:
your browser, if doesn't know, ask os's dns system address (ip address) of host ("www.google.com," example) is. if os doesn't know, query third-party dns servers (those of isp, example).
once address obtained, web browser establishes tcp/ip socket connection, typically on tcp port 80, web server @ ip address resolved host name to.
once browser has established connection, sends http request web server whatever resource requested in url. example, http://www.google.com/ mean you'd send '/' request whatever web server @ www.google.com.
the web server then, typically, respond request http response, typically containing html. web browser downloads response.
your web browser renders html. may need send additional requests scripts, stylesheets, images, or other resources linked in html.
that's basic outline. full picture, should research dns, tcp/ip, http, , html.
Comments
Post a Comment