/COMP2322-Web-Server

A COMP2322 Project - Web Server

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

COMP2322 Web Server

A COMP2322 Project - Web Server

Programming Language

  • Python 3

Usage

1. put the website source files into folder - ./web
2. python3 server.py
3. copy the website with port and visit this website on client

Functions

  • Multi-threaded Web server
  • Proper request and response message exchanges
  • GET command for both text files and image files
  • HEAD command
  • Four types of response statuses
    • 200 OK
    • 400 Bad Request
    • 404 File Not Found
    • 304 Not Modified
  • Last-Modified and If-Modified-Since header fields
  • Keep-Alive header field

Member

  • Guanlin Jiang