4 |
|
|
5 |
|
$Id$ |
6 |
|
|
7 |
< |
Assignment 0: |
8 |
< |
ls |
9 |
< |
Write a program with the same functionality as ls(1) |
10 |
< |
Basically, it should list directories and take options to specify how |
7 |
> |
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 |
|
It should provide usage information when it is given invalid options |
15 |
< |
or a help option |
16 |
< |
An option for colorized output a la GNU or FreeBSD would be spiffy |
15 |
> |
or a help option or no arguments |
16 |
> |
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 |