3 hget, formpost \- retrieve, post to a web page corresponding to a url
51 retrieves the web page specified by the URL
53 and writes it, absent the
55 option, to standard output.
59 can be a relative path like
63 was specified with the
69 is of type HTTP and the
73 options are specified, then a HTTP POST is performed.
76 the data to be posted is provided by the
78 argument as a string or alternatively with
80 read from standard input.
84 option is used to keep a local file in sync with a
85 web page. If the web page has been modified later than the
86 file, it is copied into the file. If the file is up to date
89 will fetch the missing bytes.
93 sends an arbitrary HTTP
98 overrides the HTTP method used for the request.
101 retrieves the web page specified by the URL
103 parses its HTML for form data, then prints
105 commands to submit forms to the
113 commands are assembled without first retrieving and interpreting the
118 flag is specified, debugging information is written
121 in the current directory.
125 flag applies multipart/form-data encoding to the
126 remaining arguments and prints the result on
131 flag sets the target URL to
138 flags set the form method to GET and POST, respectively. The
140 flag sets the form method to POST and its enctype to multipart/form-data.
141 In all cases, the form action is set to
144 The remaining arguments of the form
146 are interpreted as form field names and values to be submitted. An
149 is interpreted as a file upload, with the information following the
151 symbol treated as the full path to the location of the file.
155 command needed to submit a form, which may then be
159 % formpost -u http://p.intma.in
160 hget -p 'text=' http://p.intma.in/paste.cgi
163 Manually specify options to be sent to a given
167 % formpost -u http://p.intma.in -p paste.cgi 'text:test post'
168 hget -p 'text=test+post' http://p.intma.in/paste.cgi
174 % formpost -M file:@/tmp/screen.png | \\
176 -r 'Content-Type: multipart/form-data, boundary=HJBOUNDARY' \\
177 http://i.intma.in/up.cgi
195 does not attempt to insert default values for