Prev NEXT

How Web Servers Work

Behind the Scenes

If you want to get into a bit more detail on the process of getting a Web page onto your computer screen, here are the basic steps that occurred behind the scenes:

The browser broke the URL into three parts:

Advertisement

  • The protocol ("http")
  • The server name ("www.howstuffworks.com")
  • The file name ("web-server.htm")

The browser communicated with aname serverto translate the server name "www.howstuffworks.com" into anIP Address, which it uses to connect to the server machine. The browser then formed a connection to the server at that IP address on port 80. (We'll discuss ports later in this article.)

Following the HTTP protocol, the browser sent a GET request to the server, asking for the file "https://www.howstuffworks.com/web-server.htm." (Note thatcookiesmay be sent from browser to server with the GET request -- seeHow Internet Cookies Workfor details.)

The server then sent theHTML文本for the Web page to the browser. (Cookiesmay also be sent from server to browser in the header for the page.) The browser read theHTML tagsand formatted the page onto your screen.

If you've never explored this process before, that's a lot of new vocabulary. To understand this whole process in detail, you need to learn about IP addresses, ports, protocols... The following sections will lead you through a complete explanation.