note
Limbic~Region
[garskoci],
<br />
Are the user and pass fields form values as the [cpan://WWW::Mechanize] example indicates, or are they more like HTTP basic auth like the [cpan://LWP::UserAgent] shows? I am just guessing, but what does the following code do?
<CODE>
#!/usr/bin/perl
use strict;
use warnings;
use WWW::Mechanize;
my $mech = WWW::Mechanize->new( autocheck => 1 );
$mech->credentials(
'192.168.0.1:80',
'FVS318',
'admin' => 'secret'
);
# And then $mech->get() the same as in the LWP::UserAgent code
</CODE>
FWIW, take a look at [cpan://WWW::Mechanize::Shell] as well.
<div class="pmsig"><div class="pmsig-180961">
<p>
Cheers - [Limbic~Region|L~R]
</p>
</div></div>
<p>
<b>Update:</b> Added <i>a</i> to autocheck
</p>
420567
420579