in reply to WWW::Mechanize and basic authentication
WWW::Mechanize is a subclass of LWP::UserAgent - so can use all of its methods.
You want to do something like:
my $agent = WWW::Mechanize->new(); $agent->credentials($uri->host_port, "TheRealm", "user", "pass");
See LWP::UserAgent for details on credentials.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: WWW::Mechanize and basic authentication
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 petdance (Parson) on Jan 30, 2003 at 02:42 UTC | |
by adrianh (Chancellor) on Jan 29, 2003 at 19:48 UTC |