enigmae has asked for the wisdom of the Perl Monks concerning the following question:
Greetings,
I am trying to write a script that can post forms automatically without requiring a submit button press. I noticed that using GET instead of POST allows you to mimmic a submit press cause all the parameters are passed in the URL. Where are the paramters and values stored in a POST? Is there an easy way in PERL to mimmic a web browser through code?
What i ultimatley want to do and have done a bit is parse web pages extracting values then make a "form" in code and post it to a server automatically, then redirect the reply from the form post and parse it for some easy http link extraction.
Thanks for all your support and I hope this post finds you all well.
-Enigmae
Re: CGI FORM POST Versus GET
by JaWi (Hermit) on Sep 26, 2002 at 15:52 UTC
|
CPAN is your friend! :-) All your requirements are conceiled in a nice package: LWP. Also, more information (and an example!) can be found in this post.
Good luck!
update: modified text to be more friendlier :-)
-- JaWi
"A chicken is an egg's way of producing more eggs." | [reply] [Watch: Dir/Any] |
|