1 |
douglas |
881 |
Coder's Workshop |
2 |
|
|
|
3 |
|
|
Douglas Thrift |
4 |
|
|
|
5 |
|
|
$Id$ |
6 |
|
|
|
7 |
douglas |
919 |
Assignment 7: |
8 |
|
|
HTTP Client |
9 |
|
|
Write a simple HTTP 1.1 client program thingy |
10 |
|
|
It should comply with the spec (you can find it on your own) |
11 |
|
|
It should at least support the HEAD and GET methods |
12 |
|
|
It should take command line arguments including a URL and other |
13 |
|
|
options |
14 |
douglas |
920 |
It should provide usage information when it is given invalid options, |
15 |
|
|
a help option, or no arguments |
16 |
douglas |
919 |
It must work on at least FreeBSD and Linux |
17 |
|
|
It must not use any HTTP or URL library thingy, unless you wrote it |
18 |
|
|
Other options should include what to do with a downloaded file (e.g. |
19 |
|
|
display it on standard out or put it in a file), whether to |
20 |
|
|
display info from the headers, and anything else you think of |