Article Advocates - Blogging and Content Management System   96,927 Article Visits
in the Last 30 Days!
Visits History
 
HomeDashboardSearchFeaturesTutorialsSponsorsLogin

What Happens from Server to Web Browser

Submitted by Writer's Cramp Syndications (RSS Feed)

Each time you click on a link in a web page or type an address into your web browser you are making a 'request' for a certain document. That request is handled with the Hyper Text Transfer Protocol (HTTP) and sent over the Internet to the server which holds the document in question. If all goes well the server responds by sending the document -- usually a web page of text and graphics.

HTTP is part of the Internet Protocol (IP) suite. It is used by a 'client' such as a web browser to establish a connection with the server which hosts a particular website. The server waits for incoming requests by monitoring TCP port 80.

Transmission Control Protocol (TCP) is used to create connections between two computers on the Internet so they can exchange data. TCP has provisions for identifying the requesting computer and for transmitting data with time stamps so that it can be reassembled in the correct order once it arrives at its destination.

There are several TCP ports which have standardized uses. TCP port 21, for example, is usually reserved for FTP (File Transfer Protocol) for uploading and downloading files. Port 80 is usually used for HTTP.

If the server receives a request string on TCP port 80 in the form of GET / HTTP/1.1 it will send a response code depending on whether the requested web page is available or not. A typical request goes like this:

GET /faq.html HTTP/1.1
Host: http://www.mywebsite.com

This is a request for http://www.mywebsite.com/faq.html. The 'Host' needs to be specified to distinguish websites which are hosted on shared servers. If faq.html is available the server will respond:

HTTP/1.1 200 OK
Date: Mon, 12 October 2005 22:38:34 GMT
Server: Apache/1.3.27 (Unix) (Red-Hat/Linux)
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT

...followed by the actual web page.

HTTP/1.1 200 OK means that the requested web page is available. Other codes can also be returned. The code 404, for example, means that the server cannot find the requested page. The web page is sent via TCP as a series of data packets each with a header that specifies its destination and order in the data stream. The various packets can all take different paths to reach their destination. Each is sent through a router which polls other routers which are close by. If a connection with the first router is unavailable the data will be sent through another one.

As the data is received the client (the web browser) sends back an acknowledgement. This ensures that all the packets are received within a certain time. If not, they will be re-transmitted by the server. TCP also checks that the data is undamaged. The data is reassembled in the correct order thanks to the sequence number of each data packet. Voila! The web page appears on your computer screen.

The TCP connection can be kept alive for additional requests from the client. This allows several pages to be requested within a short time period without causing the overhead of opening and closing TCP ports. Either client or server can close the connection at any time.

Click for Details --> Customer Generating Machine <--

(c) 2009 by Gerald Mosner
Last Updated Jun 20, 2009

Times read since Jan 7, 2010: 67 (Visitor Sessions)

Article Syndications:

    




Social Media Sharing:



Associated Articles:
Web Marketing Factory - About Us - The Web Marketing Factory is a full service marketing agency that is exclusively focused on Demand G...
Web Marketing Factory - Home - Three major solution services we offer... Email Marketing, Outlook CRM & WebCasting...
Web Marketing Factory - Webcasting - Most successful companies have implemented tactical marketing strategies; some have a search marketi...
Website Design and Hosting Special! - CUSTOM WEBSITE DESIGN SPECIAL - Custom Website Design, and NOT just a template or other standard des...
Expert Search Engine Optimization - When choosing a Expert SEO provider, look for results - not game. Expert search engine optimization ...
Does Your Copywriting Trigger What Makes Your Visitors Buy? - Want to know what makes your visitors want to buy? Find out the two basic - yet contradictory - need...
Pursuing Your Post-Retirement Passions Online - Ten years ago, computer literacy was an issue with older Americans. My father was insistent that one...
Proper Golf Grip-how To Grip The Club To Make An Effective Swing - What is the proper golf grip? Simply, having the right golf grip is probably one of the most importa...
Golf Tips And Lessons On The Web-can You Really Trust Internet Sources? - Today, golf tips and lessons on the Web are extremely popular, as just about everybody is putting th...
Aids To Quit Smoking - As a fact, there are quite a number of ways available to help you quit smoking. Each method has a di...