Suppose you enter a URL of http://www.cs.camosun.bc.ca/~langs/funstuff.html in the browsers address bar. How does the browser find out where to look?
• The URL’s protocol is http which tells the browser what method to use to talk to the web server. • The web server is www.cs.camosun.bc.ca so the browser queries the DNS for the IP address. • The DNS will respond with 204.174.60.19 • The browser next makes a TCP connection to 204.174.60.19. The default port for web servers is port 80. • The browser then sends a message asking for the ~langs/funstuff.html file on the server • The server responds to this request and send back the file funstuff.html found in the folder public_html for the account langs • The TCP connection is closed. The “conversation” between the client and server has ended.
Related Questions
- Suppose you enter a URL of http://www.cs.camosun.bc.ca/~langs/funstuff.html in the browsers address bar. How does the browser find out where to look?
- When I click on a link from a page, or enter a URL that a friend gave me into the location bar I get HTTP Error 404 - what does that mean?
- What is the Address Bar?