Click to See Complete Forum and Search --> : perl, cgi: can i do this or what?
YaRness
12-11-2000, 02:14 PM
is it possible to write a perl script to get a web page from an arbitrary site, fill out a text box in a form on the page (like a search box), submit the form (equivalent of clicking the search button) and then display the resulting page?
just a yes or no will do if possible, i'd just like to know before i spend too much time trying to learn how.
------------------
"Assembly of Japanese bicycle require great peace of mind."
Registered Linux User #188285 http://counter.li.org/
------------------
zGoRNz
12-11-2000, 06:43 PM
yea of course! if you need any help post back
you will need to understand the html side of forms though
------------------
Dunt Dunt Duh...
GoRN To The Rescue,
Yet Again
zGoRNz@yahoo.com
aim: GoRNToTheRescue
klamath
12-11-2000, 10:00 PM
Yes, take a look at the LWP package. It's part of libwww-perl, which you can get from CPAN (try /CPAN/modules/by-module/HTTP/libwww-perl-5.48.tar.gz at your favourite CPAN mirror).
------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)
YaRness
12-12-2000, 08:56 AM
i saw a couple of modules that might work, i'll get back on it this evening hopefully.
this will probably be my project for xmas week (i am taking the whole week off from work).
thanks for the info.
------------------
"Assembly of Japanese bicycle require great peace of mind."
Registered Linux User #188285 http://counter.li.org/
------------------
YaRness
12-12-2000, 01:27 PM
ok, this is the module i was looking at:
<cpan mirror...>/by-module/HTTP/HTTP-Request-Form-0.7.readme
<edit> OI! whichever module i use, it's gonna be a long read to really understand what it's all doing. looks like the actual doing part might not be so hard though. thank goodness for open source projects.
------------------
"Assembly of Japanese bicycle require great peace of mind."
Registered Linux User #188285 http://counter.li.org/
------------------
[This message has been edited by YaRness (edited 12 December 2000).]