iguanodon has asked for the wisdom of the Perl Monks concerning the following question:
But I just get a 401 error. $user and $pass are correct, I'm logging in successfully in another script that uses 'regular' LWP.my $agent = WWW::Mechanize->new(); $agent->get("http://my.server.com/"); my $req = $agent->req(); $req->authorization_basic($user, $pass); $agent->follow("Some Link"); print $agent->content();
The docs for WWW::Mechanize don't mention anything about authentication, has anyone done this?
iguanodon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize and basic authentication
by adrianh (Chancellor) on Jan 29, 2003 at 13:12 UTC | |
by iguanodon (Priest) on Jan 29, 2003 at 13:41 UTC | |
by adrianh (Chancellor) on Jan 29, 2003 at 15:11 UTC | |
by iguanodon (Priest) on Jan 29, 2003 at 15:49 UTC | |
by petdance (Parson) on Jan 29, 2003 at 17:23 UTC | |
by iguanodon (Priest) on Jan 29, 2003 at 20:15 UTC | |
| |
by adrianh (Chancellor) on Jan 29, 2003 at 19:48 UTC |