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!
|
---|
In Section
Seekers of Perl Wisdom