![]() |
DCCT*3030 Winter 2006 Assignments Comments/Suggestions |
Assignments
Late Assignments: my policy on late assignments is very simple: NO LATE ASSIGNMENTS WILL BE ACCEPTED NO MATTER WHAT IS THE REASON. Start working early. The assignment:
You are to construct an HTTP proxy. Web clients (browsers like IE and
Netscape) send requests to the proxy. The proxy forwards the request to
the appropriate HTTP server and returns the server's response to the
client. Your proxy must keep logs (in a file) of all the URLs of websites
the client attempts to visit. Your proxy should not allow clients to visit
certain web sites. Let's say clients shouldn't be able to visit the
following three web sites:
Your proxy must return an appropriate error code and a message to the
client when an attempt is made to visit one of these web sites.
Please check the HTTP 1.0
specification or HTTP 1.1
specification to find out which error code and
message should be returned.
The proxy must accept as input two command line arguments that specify the
port number (first argument) to listen to incoming connections and the
name of the log file (second argument) as follows:
Example: java Proxy 1700 log
The format of the log file should be as follows:
Here is an example log file:
If this doesn't work you will lose 4 marks automatically, then we will try
to figure out how to run your Proxy.
You will find the HTTP 1.0
specification or HTTP 1.1
specification to be
helpful
If you have any questions please see me during my office hours or make an
appointment. If you like to ask questions via e-mail please keep the
following in mind:
|
Copyright © Qusay H. Mahmoud , University of Guelph. |