in reply to LWP-Download 401 Authorization Required
HTTP::Cookies should help. From the synopsis:
At this point, the getting and saving of cookies should happen pretty much automatically.use HTTP::Cookies; $cookie_jar = HTTP::Cookies->new( file => "$ENV{'HOME'}/lwp_cookies.dat", autosave => 1, ); use LWP; my $browser = LWP::UserAgent->new; $browser->cookie_jar($cookie_jar);
|
|---|