/Basic-Web-Server

Created a simple we server that handles one HTTP request at a time, and implements 200, 304, 400, 404 and 408 messages using socket programming. Extended the simple web server to a multi-threaded version, that is capable of handling multiple requests simultaneously

Primary LanguagePython

Basic Web Server

Python 3.9 Basic Web-Server

This project implemented a Basic Web Server using Socket Programming. Singlethread.py handles one HTTP request at a time, and implements 200, 304, 400, 404 and 408 messages. While Multithread.py extends he simple web server to a multi-threaded version, that is capable of handling multiple requests simultaneously If you plan on running the singlethreaded version skip Installation Part 3, if you plan on running the multithreaded version skip Installation Part 2

Installation

  1. Clone the repository git clone https://github.com/sarbjotm/Basic-Web-Server.git
  2. Run the Singlethreaded using Python 3.9 python singlethread.py
  3. Run the Multithreaded version using Python 3.9 python multithreaded.py
  4. Navigate to localhost:8080 to see the webpage run. If you change the port (PORT) replace 8080 with the new port when navigating