Are the user and pass fields form values as the WWW::Mechanize
example indicates, or are they more like HTTP basic auth like the LWP::UserAgent
shows? I am just guessing, but what does the following code do?
my $mech = WWW::Mechanize->new( autocheck => 1 );
'admin' => 'secret'
# And then $mech->get() the same as in the LWP::UserAgent code
FWIW, take a look at WWW::Mechanize::Shell
Update: Added a to autocheck