Click here to Skip to main content
15,905,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: recursively search the registry and delete text found. Pin
Derek Smigelski13-Nov-02 10:41
Derek Smigelski13-Nov-02 10:41 
Generaltcpclient through proxy Pin
Kannan Kalyanaraman13-Nov-02 2:55
Kannan Kalyanaraman13-Nov-02 2:55 
Hi All,

I would like to connect to a server through TcpClient class.
As I'm going through ISA Proxy which requires a NTLM authentication, I want to know how do I associate webproxy class with tcpclient (if thats possible).
I could do something like this with WebRequest class,
<br />
	WebRequest objRequest = WebRequest.Create("http://www.someurl.com/abc.xml");			<br />
	objRequest.Proxy = System.Net.WebProxy.GetDefaultProxy();<br />
	objRequest.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;<br />
	WebResponse objResponse = objRequest.GetResponse();<br />


but how do I do the same with TcpClient, I could not find a way to associate a proxy with TcpClient class.
I tried with
<br />
            _socket = new TcpClient("http://www.google.com", port);	<br />

for which i got the message saying host not found.

Thanks a lot.

Cheers
Kannan Smile | :)
GeneralOCX memory leak in C# Pin
gharrison12-Nov-02 21:29
gharrison12-Nov-02 21:29 
QuestionC# and Visual C#, Difference? Pin
Aisha Ikram12-Nov-02 21:16
Aisha Ikram12-Nov-02 21:16 
AnswerRe: C# and Visual C#, Difference? Pin
Sijin13-Nov-02 0:30
Sijin13-Nov-02 0:30 
GeneralRe: C# and Visual C#, Difference? Pin
Aisha Ikram14-Nov-02 18:08
Aisha Ikram14-Nov-02 18:08 
AnswerRe: C# and Visual C#, Difference? Pin
James T. Johnson13-Nov-02 4:01
James T. Johnson13-Nov-02 4:01 
GeneralRe: C# and Visual C#, Difference? Pin
Stephane Rodriguez.13-Nov-02 5:41
Stephane Rodriguez.13-Nov-02 5:41 
GeneralRe: C# and Visual C#, Difference? Pin
James T. Johnson13-Nov-02 6:48
James T. Johnson13-Nov-02 6:48 
GeneralRe: C# and Visual C#, Difference? Pin
David Stone13-Nov-02 9:01
sitebuilderDavid Stone13-Nov-02 9:01 
GeneralRe: C# and Visual C#, Difference? Pin
leppie13-Nov-02 9:47
leppie13-Nov-02 9:47 
GeneralRe: C# and Visual C#, Difference? Pin
David Stone13-Nov-02 9:53
sitebuilderDavid Stone13-Nov-02 9:53 
GeneralRe: C# and Visual C#, Difference? Pin
leppie13-Nov-02 10:02
leppie13-Nov-02 10:02 
GeneralRe: C# and Visual C#, Difference? Pin
Aisha Ikram17-Nov-02 20:35
Aisha Ikram17-Nov-02 20:35 
GeneralUsers control validating Pin
shab212-Nov-02 18:57
shab212-Nov-02 18:57 
QuestionListView Header Color? Pin
Anonymous12-Nov-02 11:59
Anonymous12-Nov-02 11:59 
QuestionRecieve ÅÄÖ with HttpWebRequest? Pin
Andreas Philipson12-Nov-02 11:37
Andreas Philipson12-Nov-02 11:37 
AnswerRe: Recieve ÅÄÖ with HttpWebRequest? Pin
Daniel Turini12-Nov-02 12:56
Daniel Turini12-Nov-02 12:56 
GeneralRe: Recieve ÅÄÖ with HttpWebRequest? Pin
Andreas Philipson12-Nov-02 20:49
Andreas Philipson12-Nov-02 20:49 
AnswerRe: Recieve ÅÄÖ with HttpWebRequest? Pin
Anonymous13-Nov-02 3:13
Anonymous13-Nov-02 3:13 
GeneralListview checkboxes double-click problem Pin
Ingram Leedy12-Nov-02 7:55
Ingram Leedy12-Nov-02 7:55 
GeneralRe: Listview checkboxes double-click problem Pin
Ingram Leedy12-Nov-02 18:59
Ingram Leedy12-Nov-02 18:59 
GeneralQuestion about DocumentNavigator Pin
chq1212-Nov-02 5:04
chq1212-Nov-02 5:04 
GeneralRe: Question about DocumentNavigator Pin
John Fisher12-Nov-02 12:36
John Fisher12-Nov-02 12:36 
GeneralRemoting question Pin
Sijin12-Nov-02 3:41
Sijin12-Nov-02 3:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.