[109276] in Cypherpunks

home help back first fref pref prev next nref lref last post

Perl & forms (was RE: teach me how to hack)

daemon@ATHENA.MIT.EDU (Josh Richards)
Tue Mar 16 01:24:43 1999

Date: Mon, 15 Mar 1999 22:12:51 -0800 (PST)
From: Josh Richards <jrichard@freedom.gen.ca.us>
To: cypherpunks@cyberpass.net
In-Reply-To: <19990315180636.GGDG11681@alaptop.hotwired.com>
Reply-To: Josh Richards <jrichard@freedom.gen.ca.us>

On Mon, 15 Mar 1999, Declan McCullagh wrote:

> Here's an actual serious question:

Perhaps not for Cypherpunks. :)

> 
> Using perl, how can I fill out a form on a web site and download the
> resulting page? I certainly know how to download a web page, but there's no
> obvious way to fill out forms.

Hmm..

  open("|/usr/local/bin/lynx --post_date $my_url");

   (or)

  open("|/usr/local/bin/lynx --get_date $my_url");

GET or POST via stdin into Lynx.  Not purely Perl, but no reason it should
have to be either.

-jr

----
Josh Richards - <jrichard@freedom.gen.ca.us> - This is my personal account.
Finger "jrichard@fix.net" for my PGP key - "Export crypto, not jobs!"


home help back first fref pref prev next nref lref last post