This is httpdget, a tool for getting files from a web server.

The usage is:  httpdget [options] url,
see the manual page for more information.

Httpdget is one of some simple httpd utilities (named httpd*), which
should be available at the metalab ftp site at
ftp://metalab.unc.edu/pub/Linux/apps/www/misc/.



URL parsing
===========
To address a resource httpdget needs the following information:

protocol	defaults to "http"
host		defaults to "localhost"
port		defaults to "80"
path		defaults to ""

- edit httpdget.h for changing the defaults. Thus, the default URL is
"http://localhost:80/" and is used if no argument is given.
The interpretation of a specified URL by httpdget does __not__ follow
RFC1738 and RFC1808 (to be true, I even didn't study them), rather it's
done as a lazy user would expect:

""			~ http://localhost:80/
/			~ http://localhost:80/
file			~ http://localhost:80/file
/file			~ http://localhost:80/file
dir/file		~ http://localhost:80/dir/file
/dir/file		~ http://localhost:80/dir/file
//host			~ http://host:80/
//host/file		~ http://host:80/file
//host:port/file	~ http://host:port/file
http://host		~ http://host:80/

Wired but working:

//host:			~ http://host:80/
//:port			~ http://localhost:port/
//:/			~ http://localhost:80/
///			~ http://localhost:80/
//////////////////	~ http://localhost:80/
//://			~ http://localhost:80//

Not working as perhaps expected:

http:file		~ http://localhost:80/http:file
http:/file		~ http://localhost:80/http:/file
http://file		~ http://file:80/
