2082 4

CSC329 ยท 2082 ยท 5 marks

Define web clients and web servers with examples.

Define web clients and web servers with examples. [5]

Web TechnologyChapter 1: IntroductionWeb Clients

Quick answer

A web client is a software application (typically a web browser) that runs on the user's machine and sends requests to a web server to retrieve and display web content. The client initiates communication by sending an HTTP request and then receives and renders the response (such as an HTML page, image, or other resource) for the user.

Web Clients and Web Servers

Web Client

Key characteristics of a web client:

  • Runs on the user's (client) side
  • Uses HTTP protocol to communicate with the server
  • Executes client-side scripts (e.g., JavaScript)
  • Renders HTML, CSS, and multimedia content

Examples of web clients:

  • Google Chrome
  • Mozilla Firefox
  • Microsoft Edge
  • Opera Mini
  • Internet Explorer

Web Server

A web server is a computer program (or the machine running it) that stores, processes, and delivers web pages and resources to clients upon request. When a web server receives an HTTP request from a client, it fetches the requested resource and sends back an HTTP response.

Key characteristics of a web server:

  • Runs on the server side
  • Listens for incoming HTTP requests
  • Processes requests and sends appropriate responses
  • Hosts websites, files, and web applications

Examples of web servers:

  • Apache HTTP Server
  • Nginx
  • Microsoft IIS (Internet Information Services)
  • Border Manager (a multipurpose network security application also used as a proxy server)

How They Work Together (Client-Server Model)

According to the HTTP protocol, the interaction follows these steps:

  1. User enters a URL in the browser (web client)
  2. Browser uses DNS to locate the IP address of the server
  3. Browser opens a TCP connection to the web server
  4. Browser sends an HTTP request over the connection
  5. Server sends an HTTP response (with the requested web page or resource)
  6. Browser displays the content in the browser window
[Web Client]  ----HTTP Request---->  [Web Server]
(Browser)     <---HTTP Response----  (Apache/Nginx)

Summary Table

FeatureWeb ClientWeb Server
LocationUser's machineRemote/host machine
RoleSends requests, displays contentReceives requests, sends responses
Protocol usedHTTPHTTP
ExampleChrome, FirefoxApache, Nginx

Note: This client-server model forms the foundation of the World Wide Web (WWW), which uses HTTP protocol and browsers to access information over the internet.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.