CSCI.4220 Network Programming
Spring, 2005
Programming Assignment 2
Write an HTTP Proxy server
- One or more web browers should be redirected to your server.
- All requests from the browser should go through the
proxy. If the requested file is cached on your proxy,
return it immediately. Otherwise, pass the request on to
the appropriate web server.
- When a requested document is returned from a web server,
make a copy of it, and pass it back to the requesting client.
- Your proxy server should maintain a logfile called proxylog
with a line for each event, including the following.
- requests from clients, including the client ip address (in dotted decimal
notation), the name of the server, the name of the file, the time that the
request was made, and whether or not the file was in the proxy server
cache and thus returned immediately.
- all responses from remote servers
To redirect Internet Explorer to your proxy, do the following:
From the Tools menu, choose Internet Options
On the Internet Options page, choose the Connections Tab
Push the LAN Settings button
Check Use a Proxy Server for your LAN and enter the name and
port number in the space provided.
The project is due on Friday Feb 25 at 11:55PM.
It should be written on FreeBSD.