C# proxy
| Author | Topic |
|---|---|
| I S Member Joined: 06 Jan 2008 Country: Posts: 1 | Hi all I'm coding C# i use webBrowser component and woould like to use internet connection within proxy server, just like 2 textboxes for IP and Port How should i do it? thanks and sorry for my poor english =) |
| ==IGOR== ==IGOR== Member Joined: 26 Oct 2008 Country: Ukraine Posts: 1 | If I understand correctly, you should perform next code: If I understand correctly, you should perform next code:Setting a global HTTP proxy in C# and .NET client classes. To configure HTTP client classes (System.Net.WebClient, System.Xml.XmlTextReader) to use an HTTP proxy use the System.Net.GlobalProxySelection class. Example code: System.Net.Uri proxyURI = new System.Net.Uri("64.202.165.130:3128"); System.Net.GlobalProxySelection.Select = new System.Net.WebProxy(proxyURI); Subsequent invocations of methods that directly or indirectly make HTTP requests will route the request through the declared proxy. This article was taked from www.hccp.org/csharp-http-proxy.html |
Posted: 06 Jan 2008 23:08:38










