Socket Programming Assignment
Socket Programming Assignment
Socket Programming Assignment
As we have seen in the lab, we were able to create a client and a server, then we can
establish a connection between them. This assignment will be in the same way;
however, you are asked to write a server only (webserver) and the client will be the
browser.
You have to write a http_server.py file that contains the following:
1. Create a TCP connection that listens on port number 12000
2. Read the incoming HTTP request and parse it to get the name of the
file the browser is asking for.
3. Create an HTTP response that contains the data of the file.
Send this HTTP response to the client (browser)
At a high level, your web server will be structured something like the
following: