Instructions for the programming part in HW2

What to submit:

  1. WebServer.py
  2. README.txt

Please, follow these conventions:

  • Use python 2.7
  • Use the port = 6789 for the WebServer.
  • Use localhost address.

Hints

  • Follow the instructions and use the Python code provided at the programming assignment.
  • For the WebServer, you can get the tcp server from the discussion tcp_example and then change the part of the code where the Server replies to the client (it is after the connection establishment).
  • In the README.txt file, you should write a short description of your code.
  • Your WebServer must work with various types of files, e.g. html, jpeg, etc.
  • Make sure that your code handles the case when a non-existent file is requested from your WebServer.