Microsoft Interview Question
Software Engineer / DevelopersCountry: -
Browser splits what you type (the URL) into a hostname and a path.
Browser forms an HTTP request to ask for the data at the given hostname and path.
Browser performs DNS lookup to resolve the hostname into an IP address.
Browser forms a TCP/IP connection to the computer specified via the IP address. (This connection is actually formed out of many computers, each passing the data along to the next.)
Browser sends the HTTP request down the connection to the given IP address.
That computer receives the HTTP request from the TCP/IP connection and passes it to the web server program.
Web server reads the hostname and path and finds or generates the data that you've asked for.
Web server generates an HTTP response containing that data.
Web server sends that HTTP response back down the TCP/IP connection to your machine.
Browser receives the HTTP response and splits it into headers (describing the data) and the body (the data itself).
Browser interprets the data to decide how to display it in the browser - typically this is HTML data that specifies types of information and their general form.
Some of the data will be metadata that specifies further resources that need to be loaded, such as style sheets for detailed layout, or inline images, or Flash movies. This metadata is specified again as a URL, and this whole process repeats for each one until all are loaded.
- Another Solution January 07, 2013