Friday, October 16, 2009

web server and client

Web Client
A web client is a browser which lets the user to request resources. The resources can be an image, a text file, a sound file or anything. The web client sends request to the web server.

Web Server
A web server receives the request from the client, locates the requested resource and sends the response back to the client. If the requested resources is not available in the server it gives a '404 File not found error'

How the client and server communicates?

The web server and client communicates via HTTP (Hyper Text Transfer Protocol). The HTTP protocol runs on the top of TCP/IP.
The TCP (Transmission Control Protocol) ensures that the file send from one host to another is received completely and correctly.
The IP (Internet Protocol) routes the packets from one host to another.
The web client must know HTML (Hyper Text Mark up Language). The HTML tells the browser how to display the contents send by the server.
In short, the browser ie the web client sends HTTP request and the web server send back an HTTP response which contains HTML.

Followers