authentication

Tac/Smokescreen Action Network (tac@smokescreen.org)
Wed, 10 Nov 1999 10:41:39 -0500


I'm stuck on what looks to be very simple -- sending in a username and
password to a site:

use LWP;

my $ua = LWP::UserAgent->new;
$ua->credentials("sunfinder.smokescreen.org","Web Server","tac","password");
$url =
"http://sunfinder.smokescreen.org/pv/lead/hQuote.cfm?ResearchID=1781";
$req = HTTP::Request->new('GET', $url);
$response = $ua->request($req);
print $response->as_string;

The authentication box for the URL comes up with "Web Server" as the realm,
and the username and password (not "password", but the real one) work fine
when I type it into the authentication box.

Any ideas?

Thx,

Tac