Understanding How A Web Browser Communicates with A Web Server

As seen earlier, a web server is responsible for sending web pages to a browser on a client. When a Browser communicates with Web Server, it results into a four step HTTP transaction.
  
A client's browser retrieves a web page from the server and displays the webpage in the browser. The communication steps between the client and the server can be summarized as follows:


Before a client and server can exchange information they must first establish a connection. TCP/IP is used to let computers establish a link between a web server and web browser over the internet.

To communicate with web server, the client machine must given the IP address of the server along with the sub protocol that must used i.e. HTTP,FTP etc. 

The client browser will attempt to locate the server based on the IP address supplied and establish a connection.

A web server supports multiple protocols for example: a web server may support two protocols viz. In such cases each of the protocols (like HTTP, FTP) can be accessed by specifying protocol name and a specific "port number". 

Common protocols like HTTP, FTP etc have "well known" port numbers for example the HTTP protocol by default work on port number 80. 

Similarly the FTP protocol by default works on port number 21, If the protocols are configured on default port numbers, the connection to a Web Server can be established by:

        Protocol://IP adress

For example: if the IP address for the SCT server is 131.100.2.107 and communication must be established using HTTP then any client attempting to connect would have to pass the IP address as: http://131.100.2.107 to the ISP whose gateway is being used to access the internet

Protocols can be configured to run on port number other than the default port number valid values are 0 to 9999. If the protocols is configured to run on any other port number then the client when trying to establish a communication link with the web server must specify the port number along with the protocol name and the IP address.

Thus the complete syntax to access and connect to any server would be:
protocol://servername:port number.






No comments:

Post a Comment

Please Don't Put Any Kind of Link in Comments, If you do we will delete it