G
Guest
Anyone who can help here is much appreciated. I am trying to
programmatically log onto a website. I am using the code provided in VS for
the AuthenticationManager Class example (
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemNetAuthenticationManagerClassTopic.htm
). I have also download and tried to use the following CsharpHttp executable
in an attempt to find my problem:
http://support.microsoft.com/default.aspx?scid=kb;en-us;303436
Nothing seems to want to work. It doesn't matter if I set PreAuthenticate
to true, it doesn't matter if I set Keep-Alive to true, etc., etc., etc. I
can log into the website through IE with my username/password, but setting
the credentials just won't fly. I used to use a simple OpenUrl in VB and
that has no problem. I was hoping to move up in the world, but I've already
spent more than a week researching this one issue to no avail. Please help.
Here's what I get back:
The following authentication modules are now registered with the system:
Module : System.Net.DigestClient
CanPreAuthenticate : True
Module : System.Net.NegotiateClient
CanPreAuthenticate : True
Module : System.Net.KerberosClient
CanPreAuthenticate : True
Module : System.Net.NtlmClient
CanPreAuthenticate : True
Module : Mssc.Services.Authentication.CustomBasic
CanPreAuthenticate : False
Headers: Date: Thu, 14 Apr 2005 21:38:52 GMT
Server: Apache/1.3.26 (Unix) mod_macro/1.1.2 mod_perl/1.24
WWW-Authenticate: Basic realm="Welcome to Manheim Online"
Last-Modified: Fri, 07 Feb 2003 16:27:50 GMT
ETag: "5ec1c4-ee-3e43de86"
Accept-Ranges: bytes
Content-Length: 238
Connection: close
Content-Type: text/html
Authentication Failed, Unauthorized
Status Code: 401
Status Description: Authorization Required
programmatically log onto a website. I am using the code provided in VS for
the AuthenticationManager Class example (
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemNetAuthenticationManagerClassTopic.htm
). I have also download and tried to use the following CsharpHttp executable
in an attempt to find my problem:
http://support.microsoft.com/default.aspx?scid=kb;en-us;303436
Nothing seems to want to work. It doesn't matter if I set PreAuthenticate
to true, it doesn't matter if I set Keep-Alive to true, etc., etc., etc. I
can log into the website through IE with my username/password, but setting
the credentials just won't fly. I used to use a simple OpenUrl in VB and
that has no problem. I was hoping to move up in the world, but I've already
spent more than a week researching this one issue to no avail. Please help.
Here's what I get back:
The following authentication modules are now registered with the system:
Module : System.Net.DigestClient
CanPreAuthenticate : True
Module : System.Net.NegotiateClient
CanPreAuthenticate : True
Module : System.Net.KerberosClient
CanPreAuthenticate : True
Module : System.Net.NtlmClient
CanPreAuthenticate : True
Module : Mssc.Services.Authentication.CustomBasic
CanPreAuthenticate : False
Headers: Date: Thu, 14 Apr 2005 21:38:52 GMT
Server: Apache/1.3.26 (Unix) mod_macro/1.1.2 mod_perl/1.24
WWW-Authenticate: Basic realm="Welcome to Manheim Online"
Last-Modified: Fri, 07 Feb 2003 16:27:50 GMT
ETag: "5ec1c4-ee-3e43de86"
Accept-Ranges: bytes
Content-Length: 238
Connection: close
Content-Type: text/html
Authentication Failed, Unauthorized
Status Code: 401
Status Description: Authorization Required