Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

CGI FORM POST Versus GET

by enigmae (Pilgrim)
on Sep 26, 2002 at 15:24 UTC ( #200925=perlquestion: print w/replies, xml ) Need Help??

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

Replies are listed 'Best First'.
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."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://200925]
Approved by TStanley
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2022-11-29 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?