| HGET(1) | HGET(1)
| NAME
| hget – retrieve a web page corresponding to a url
SYNOPSIS
| `hget` [ `−dhv` ][ `−o` ofile ][ `−p` body ][ `−x` netmntpt ] url
DESCRIPTION
| Hget retrieves the web page specified by the URL url and writes it, absent the `−o` option, to standard output. The only supported URL type is http.
If url is of type HTTP and the `−p` option is specified, then an HTTP POST is performed with body as the data to be posted.
The `−o` option is used to keep a local file in sync with a web page. If the web page has been modified later than the file, it is copied into the file. If the file is up to date but incomplete, hget will fetch the missing bytes.
Option `−h` causes HTTP headers to be printed to standard output in addition to the transferred web page.
Option `−d` turns on debugging written to standard error.
Normally, hget uses the IP stack mounted under `/net`. The `−x` option can be used to specify the mount point of a different IP stack to use.
Option `−v` writes progress lines to standard output once a second. Each line contains two numbers, the bytes transferred so far and the total length to be transferred.
If the environment variable `httpproxy` is set, it is used as a URL denoting an HTTP proxy server. All HTTP accesses use this server to get the page instead of calling the destination server.
SOURCE
| `/usr/local/plan9/src/cmd/hget.c`