This commit is contained in:
cinap_lenrek 2013-09-20 17:41:51 +02:00
commit 4e015eb5c7
2 changed files with 3 additions and 4 deletions

View file

@ -1,13 +1,12 @@
#!/bin/rc #!/bin/rc
rfork e rfork e
argv0=$0
url=() url=()
at=() # text fields at=() # text fields
af=() # file fields af=() # file fields
l=() l=()
fn usage { fn usage {
echo usage: $argv0 '[ -l ] [ -[gpm] action ] [ -u ] url [ field:value | field@file ... ]' >[1=2] echo 'usage: hpost [ -l ] [ -[gpm] action ] [ -u ] url [ field:value | field@file ... ]' >[1=2]
exit usage exit usage
} }
@ -41,7 +40,7 @@ while(! ~ $#* 0){
shift shift
} }
hpost=($argv0 $l) hpost=(hpost $l)
fn uenc { fn uenc {
f=$1 f=$1

View file

@ -204,7 +204,7 @@ edited and sent.
.IP .IP
.EX .EX
% hpost http://p.intma.in % hpost http://p.intma.in
/bin/hpost -u http://p.intma.in -p paste.cgi text: hpost -u http://p.intma.in -p paste.cgi text:
.EE .EE
.PP .PP
Manually specify fields to be sent to a given Manually specify fields to be sent to a given