I am attempting to use WWW::Mechanize for the first time, and am having
some trouble with authentication.  The page I'm trying to authenticate
to uses a pop-up prompt for user/pass, which seems to be what's causing
my problems.  I've tried just about everything I can think of, but no
luck.  I'm hoping for some help from the list...
 
Here's the gist of what my latest attempt was:
 
my $user = "user";
my $pass = "pass";
my $url = http://url.com/url.html;
my $mech = WWW::Mechanize->new();
$mech->credentials($url,$user,$pass); 
$ret = $mech->get($url);
 
Unfortunately, this is not authenticating successfully.  Part of the
hash returned to $ret contains "'_msg' => 'Unauthorized'", as well as a
text message reponse indicating authentication failure.
 
How can I go about authenticating to a site like this?  Any help would
be most appreciated.
 
Thanks.
 
Jason

Reply via email to