Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: using LWP to POST multiple name/value pairs

by nite_man (Deacon)
on Mar 08, 2006 at 12:54 UTC ( #535158=note: print w/replies, xml ) Need Help??


in reply to using LWP to POST multiple name/value pairs

If you need to submit some form from Perl script there is a better way to do it - use module WWW::Mechanize:
use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->submit_form( form_number => 3, fields => { username => 'mungo', password => 'lost-and-alone', } );

---
Michael Stepanov aka nite_man

It's only my opinion and it doesn't have pretensions of absoluteness!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://535158]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2021-06-23 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (123 votes). Check out past polls.

    Notices?