Assignment Set 1 - Submission Guidelines (Fall 2005)
To submit your assignment, you will need to show a run
of specific input for Parts 1, 2, and 3. To receive partial credit
for any portion, you will need to show runs that demonstrate
those parts function correctly. For the different
parts of the assignment, here are the required runs to be
be captured.
- Part 1: Run your client with your server from part 2 on the same
machine. This machine must be one of the shell servers (murdock or wensong).
This means you will need to have Part 2 working to demonstrate Part 1.
Run your client with hostname of localhost and the port of your server.
Use
cat to input the file ~tmont/assign1-Fa05-part1.txt into
your client. For example:
- $ cat ~tmont/assign1-Fa05-part1.txt | echo_client
- Part 2: Include the server output in the run for Part 1.
- Part 3: Run your proxy. Use
wget arguments to
use your proxy and to display headers for what it downloads. The following
URLs must be shown. NOTE: Where the same URL is shown, it must be demonstrated
twice for caching purposes.
- http://65.246.255.51/help.html
- http://bogus.urls:888/fake.html
- http://www.ietf.org/rfc/rfc1945.txt
- http://www.cemr.wvu.edu
- http://shell:806/index.html
- http://www.ietf.org/rfc/rfc1945.txt
An example usage of wget to use a proxy running on localhost port 3058
while displaying headers and the URL http://www.cnn.com would be the following:
- $ wget -e http_proxy=http://localhost:3058 -S http://www.cnn.com
You must use scriptto start capturing your runs.
If you do not know how to use script, examine its man page.
A sample run might look like this.
$ script
Script started, file is typescript
$ httpclient http://www.csee.wvu.edu/~tmont/aliensong.mpg
Retrieving file....
Content-Type: video/mpg
Content-Length: 3201028
$ exit
Script done, file is typescript
You will need to submit all script runs and source code to tmont@csee.wvu.edu.
Make sure your name is clearly visible so that your grade can be recorded correctly.
Some restrictions:
- You should include a README file that explains the files
and the usage of your programs.
- You must include a script of your program in operation with specific
input as given above.
- Do not include any binary files.
- Do not include any additional directories.
- Do not include any native code if using Java (JNI).
Please follow this procedure. If you do not follow this procedure
your programs will not be graded!
Todd L. Montgomery (revised 10.09.2005)