Httpget

Description

Httpget is a small utility that fetches the contents of a URL and writes it to standard output. It is very fast to use, you don't have to wait for a browser to fire up. And the important download doesn't break if your unstable browser should crash.

Download

Download the C source code.

Compile

Compile the source with command cc -o httpget httpget.c. If you are on a Sys V Unix add -lsocket.

Usage

httpget [-r] <URL>

Httpget will contact the server specified in the URL. When the server sends the the HTTP reply header, it is written to standard error. The rest of the HTTP reply is written to standard output as it arrives. The -r option causes the cache of the proxy to be overridden.

Environment Variables

http_proxy
If set, specifies a proxy server in the format http://www-cache.my.domain:8080/

License

The permission to use, modify and distribute this program for any purpose is granted as long as you do not make false claims of authorship.

Front page