The Client Server Model

The world wide web is build on top of the client server model. The client server model consists of clients and servers that communicate with each other. There are 2 rules in the client server protocol:

  1. The client initiates contact with the server by sending a request.

  2. The server (whose job is to listen to these client requests), processes the request and then sends a response back.

Fig: 1.1.1.1. The Client Server Model

The server is an application program and can hence respond differently based on the request URL's path. For Eg: the URLs https://google.com and https://google.com/maps both send a request to google.com, but based on the path (if it has "/maps" or not) a different page is served.