Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying www-Authentication on IIS sever.I am always getting 401 error (Access denied) inspite of valid username and password.
Error message details:
My Code: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'
Looking for help!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; }
Thanks & Regards,
Raj
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NTLM problems:"Unsupported authentication scheme ntlm"
by dr_jgbn (Beadle) on Jan 19, 2003 at 18:20 UTC | |
|
Re: NTLM problems:"Unsupported authentication scheme ntlm"
by iguanodon (Priest) on Jan 19, 2003 at 20:05 UTC | |
by Anonymous Monk on Jan 20, 2003 at 09:05 UTC | |
by iguanodon (Priest) on Jan 20, 2003 at 14:02 UTC | |
by Anonymous Monk on Oct 11, 2011 at 22:08 UTC | |
by Anonymous Monk on May 19, 2014 at 08:56 UTC |