.TH HGET 1
.SH NAME
-hget, hpost, ok, urlencode \- retrieve, post to a web page corresponding to a url
+hget, hpost, webpaste, urlencode \- retrieve, post to a web page corresponding to a url
.SH SYNOPSIS
.B hget
[
]
.I ...
.PP
-.B ok
+.B webpaste
+[
.I file
+]
.PP
.B urlencode
[
and
.I hpost
to print the location URL from the transaction response
-instead of retrieving the the body data. This is useful
+instead of retrieving the body data. This is useful
for HTTP POST transactions that redirect to a URL containing
the posted data so we wont refetch the data we just uploaded
to the site.
.IR file (1)
is invoked to determine its mime type.
.PP
-.I Ok
+.I Webpaste
uploads the contents either of its standard input or
.I file
to the pastebin website
.B http://okturing.com
.IP
.EX
-% ns | ok
+% ns | webpaste
.EE
.SH SOURCE
.B /rc/bin/hget
.br
.B /rc/bin/hpost
.br
-.B /rc/bin/ok
+.B /rc/bin/webpaste
.br
.B /sys/src/cmd/urlencode.c
.SH "SEE ALSO"
.IR ftpfs (4),
.IR file (1)
.SH DIAGNOSTICS
-.I Hget ,
+.IR Hget ,
.I hpost
and
-.I ok
+.I webpaste
require
.IR webfs (4)
service mounted on
.B /mnt/web
to work.
+.SH HISTORY
+.I Hget
+first appeared in Plan 9 from Bell Labs. It was
+rewritten as an
+.I rc
+script for 9front (January, 2012).
+.I Hpost
+and
+.I urlencode
+first appeared in 9front (October, 2012).
+.I Webpaste
+first appeared in 9front (September, 2013).