Error: 401 Access Denied HTTP/1.1 401 (Unauthorized) Access Denied Date: Sun, 19 Jan 2003 17:11:12 GMT Server: Microsoft-IIS/5.0 WWW-Authenticate: Negotiate WWW-Authenticate: NTLM Content-Length: 24 Content-Type: text/html Client-Date: Sun, 19 Jan 2003 17:11:10 GMT Client-Peer: MYIP:80 Client-Warning: Unsupported authentication scheme 'ntlm' #### my $ua = new LWP::UserAgent; my $req = new HTTP::Request 'GET', 'http://mydomain.com/'; $req->authorization_basic('uname', 'password'); my $resp = $ua->request($req); if ($resp->is_success) { print $resp->content; } else { print "Error: " . $resp->status_line . "\n"; print $resp->as_string; }