in reply to passing Apache Basic Auth. creditial with WWW::Mechanize?
This way, WWW::Mechanize will figure out for itself when it needs to use the password, if your spidering takes you between authenticated and non-authenticated sections of a site, or between sites altogether.my $mech = WWW::Mechanize->new( autocheck => 1 ); $mech->credentials( 'members.easynews.com:80', 'EasyNews', 'username' => 'password' );
|
|---|