Group,

I did the following using XMLHTTP (VB6 client)
o.XmlHttp.Open "POST", _
"https://wwww.mycompany.com/getinfo.ashx", _
False, "user.id", "password"

Now I am trying to do the same in .NET/C# with HttpWebRequest but I
don't how to set the authentication. I see mention of Authentication
Header but can't find the details.

Thanks

John

Re: HttpWebRequest and HTTPS by Brock

Brock
Wed May 11 15:10:55 CDT 2005

Use the HttpWebRequest.Credentials property. Assign it something like "new
NetworkCrentials("brock", "mypassword")", or is you want the current user's
credentials use CredentialsCache.DefaultCredentials.

-Brock
DevelopMentor
http://staff.develop.com/ballen



> Group,
>
> I did the following using XMLHTTP (VB6 client)
> o.XmlHttp.Open "POST", _
> "https://wwww.mycompany.com/getinfo.ashx", _
> False, "user.id", "password"
> Now I am trying to do the same in .NET/C# with HttpWebRequest but I
> don't how to set the authentication. I see mention of Authentication
> Header but can't find the details.
>
> Thanks
>
> John
>




Re: HttpWebRequest and HTTPS by Feroze

Feroze
Tue May 17 15:00:31 CDT 2005

Set the Credentials property on the webrequest.

--
feroze

-----------------
This posting is provided as-is. It offers no warranties and assigns no
rights.

See http://weblogs.asp.net/feroze_daud for System.Net related posts.
----------------

"Q. John Chen" <qjchen@email.com> wrote in message
news:1115836775.401489.211830@g49g2000cwa.googlegroups.com...
> Group,
>
> I did the following using XMLHTTP (VB6 client)
> o.XmlHttp.Open "POST", _
> "https://wwww.mycompany.com/getinfo.ashx", _
> False, "user.id", "password"
>
> Now I am trying to do the same in .NET/C# with HttpWebRequest but I
> don't how to set the authentication. I see mention of Authentication
> Header but can't find the details.
>
> Thanks
>
> John
>