CS33300 - Assignment 1

Handed out: Tuesday, March 30, 2004
Due: Tuesday, April 6, 2004. 11:59 p.m.

Web Server

Your task is to write a simple web server capable of delivering both files and running CGI programs. Your web server must be compiled into a file called 'webserve' and run as follows:
% webserve 12345
Yourname web server. 
Listening on port 12345
The argument to the web server is the TCP port number on which connections are to be received. This can be any number in the range 1024-65535.

Once the web server is running, users should be able to connect to it using any browser. Simply enter a URL such as:

http://somemachine.cs.uchicago.edu:12345/index.html

Requirements

Implementation Hints

Testing

To test your web-server, we will run it from the following directory:
/stage/classes/current/33000-1/test/assign1
We will then connect your web server and attempt to load a file called "index.html."

Handin

Your assignment should consist of three files:
Makefile          -  Makefile for the project
webserver.c       -  Source code for the server
README            -  README file with your name and details
You are free to implement the web server in any manner that you see fit.

To hand in your assignment: