Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Submit a form using perl module

by Corion (Pope)
on Jul 04, 2005 at 21:18 UTC ( #472304=note: print w/replies, xml ) Need Help??

in reply to Submit a form using perl module

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.

Replies are listed 'Best First'.
Re^2: Submit a form using perl module
by ikegami (Pope) on Jul 04, 2005 at 21:43 UTC

    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: note [id://472304]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2020-11-28 02:20 GMT
Find Nodes?
    Voting Booth?

    No recent polls found