Re: Accessing html forms...
On Tue, 2 Jun 1998, Jens B. Jorgensen wrote:
> "POST" requests should be quite simple to do in perl. Here's what a post request
> looks like from the client:
>
>
> POST / HTTP/1.0
> Content-type: application/x-www-form-urlencoded
> Content-length: 24
>
> foo=fdsaf&bar=jk%3Blasdf
>
> The "variables" are passed in the body of the request. You can just
> string them together, <var>=<val>[&<var>=<val>]... doing character
> replacement as described in the RFCs (hint: write your job in perl and
> use the CGI module which includes uri_escape()).
>
Sorry, I think we've got confussed. I know perl very well, and as Ralph
said it has proved invaluable. However, what I want to do is ~send~
something to a html server via a POST operation.
Scenerio is as follows:
There is a web page on a remote site that contains a form which I must
fill out on a regular basis. Rather than loading netscape and going to
the page, then filling out the form, I would like to write a program to
connect to the remote http server (actually via a proxy) and send the POST
information automatically. I can then add it as a cron job.
Unfortunately I don't know the protocol used for sending POST (I've done
plenty of cgi-bin to except POST before), and I was wanting some
information on that, or a utility that does this allready (something like
snarf).
Thanks again,
Chris Leishman
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: