Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Submit a form using perl module

by Anonymous Monk
on Jul 04, 2005 at 21:16 UTC ( #472303=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Is there any module to submit a form using a perl module? with out having to click the submit button manually? We are looking to automate some of the stuff. Thanks a lot Hemanth

Comment on Submit a form using perl module
Replies are listed 'Best First'.
Re: Submit a form using perl module
by Corion (Pope) on Jul 04, 2005 at 21:18 UTC

    Yes. There is WWW::Mechanize, which is the easiest method. There also is HTTP::Request, which is the hard way, and which is what WWW::Mechanize uses.

      The user places the request using LWP (LWP::UserAgent, even) rather than HTTP::Request, as shown in the following example:

      use HTTP::Request::Common; $ua = LWP::UserAgent->new; $ua->request(POST '', [ name => 'Gisle Aas', email => '', gender => 'M', born => '1964', perc => '3%', ]);

      HTTP::Request could have been used instead of HTTP::Request::Common.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://472303]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-11-27 06:06 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (719 votes), past polls