Re: Sockects with authentication

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Feroze [MSFT] (ferozed_at_online.microsoft.com)
Date: 03/08/04


Date: Mon, 8 Mar 2004 10:50:45 -0800

Is it an HTTP proxy server ? If so, the answer depends on the type of
authentication method requested by the server.

If you want to do HTTP through an authenticated proxy, you should be using
System.Net.HttpWebRequest. It handles proxy and server authentication. You
just need to provide credentials.

-- 
Remove "user" from the email address to reply to the author.
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Manish Buttan" <Manish@ccipl.com> wrote in message
news:EE71235A-6A51-46D7-B777-C80F35AE50A5@microsoft.com...
> Hi,
>     I want to create a socket using C# to connect to a proxy server which
is password authenticated. So how do I pass the username and password to
connect to the server.
>   I am using System.Net.Sockets.Socket class for connection.
>
> Thanks in Advance.
>
> Regards,
> Manish.

Quantcast