diff options
Diffstat (limited to 'static/plan9-4e/man1/hget.1')
| -rw-r--r-- | static/plan9-4e/man1/hget.1 | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/static/plan9-4e/man1/hget.1 b/static/plan9-4e/man1/hget.1 new file mode 100644 index 00000000..40ee79eb --- /dev/null +++ b/static/plan9-4e/man1/hget.1 @@ -0,0 +1,68 @@ +.TH HGET 1 +.SH NAME +hget \- retrieve a web page corresponding to a url +.SH SYNOPSIS +.PP +.B hget +[ +.B -dv +][ +.B -o +.I ofile +][ +.B -p +.I body +][ +.B -x +.I netmntpt +] +.I url +.SH DESCRIPTION +.I Hget +retrieves the web page specified by the URL +.I url +and writes it, absent the +.B -o +option, to standard output. +The known URL types are: http and ftp. +.PP +If +.I url +is of type HTTP and the +.B -p +option is specified, then an HTTP POST is performed +with +.I body +as the data to be posted. +.PP +The +.B -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, +.I hget +will fetch the missing bytes. +.PP +Option +.B -d +turns on debugging written to standard error. +.PP +Normally, +.I hget +uses the IP stack mounted under +.BR /net . +The +.B -x +option can be used to specify the mount point of +a different IP stack to use. +.PP +Option +.B -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. +.SH SOURCE +.B /sys/src/cmd/hget.c +.SH "SEE ALSO" +.IR ftpfs (4) |
