diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-10-18 15:23:40 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-10-18 15:23:40 +0200 |
commit | 3730a4df533c7508ccfa0382ad2661b0715f6487 (patch) | |
tree | 68c2a364381513d56e68aaa3323e8bf25abd832b /sys/man/1/hget | |
parent | b5a6a26fd877af43d4c159037d3b671ef6e9fd91 (diff) |
document urlencode in hget(1)
Diffstat (limited to 'sys/man/1/hget')
-rw-r--r-- | sys/man/1/hget | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/man/1/hget b/sys/man/1/hget index 70a094b91..1b2f0fce1 100644 --- a/sys/man/1/hget +++ b/sys/man/1/hget @@ -1,6 +1,6 @@ .TH HGET 1 .SH NAME -hget, hpost \- retrieve, post to a web page corresponding to a url +hget, hpost, urlencode \- retrieve, post to a web page corresponding to a url .SH SYNOPSIS .B hget [ @@ -47,6 +47,13 @@ hget, hpost \- retrieve, post to a web page corresponding to a url .I name@file ] .I ... +.PP +.B urlencode +[ +.B -d +] [ +.I file +] .SH DESCRIPTION .I Hget retrieves the web page specified by the URL @@ -160,6 +167,14 @@ argument of the form is interpreted as a file upload, with the information following the .B @ symbol treated as the full path to the location of the file. +.PP +.I Urlencode +is a helper program to URL encode and decode files. The +.B -d +flag insead of encoding, decodes URL encoded file. If no +.I file +is given, standard input is read. The resulting data +is written to standard output. .SH EXAMPLES Download a file from the web. .IP @@ -191,6 +206,8 @@ Upload a file, print the resulting URL .B /rc/bin/hget .br .B /rc/bin/hpost +.br +.B /sys/src/cmd/urlencode.c .SH "SEE ALSO" .IR webfs (4) , .IR ftpfs (4) |