NetXtremeProxy .NET component offers an easy way for applications to send data to a host through a proxy server. It supports HTTP, SOCKS4, SOCKS4A and SOCKS5. ProxyClient in the NetXtremeProxy .NET class library is similar to the TcpClient .NET class, it also simplifies the task of developing applications working with the proxy servers.
NetXtremeProxy is also included in the following suites which are bundles that include many additional components:
Major Features (Click on
tab to see detailed features):
Fully support both event-driven (asynchronous) and blocking (synchronous) application designs.
Supports HTTP, SOCKS4, SOCKS4A and SOCKS5
100% managed code written in C#
Fully documented and 4 Sample projects written in C#, VB.NET and ASP.NET.
Sample Usage - Sending a request to a host through a proxy server:
// Initialize request message.
string requestMessage =
"GET / HTTP/1.0\r\n" +
"Host: www.google.com\r\n" +
"Connection: close\r\n" +
"\r\n";
// Create a new instance of the ProxyClient.
using (ProxyClient proxyClient = new ProxyClient("www.google.com", 80,
ProxyType.HttpConnect, ProxyAuthentication.Basic,
"proxyserver", 808, "username", "password", null))
{
NetworkStream nsr = proxyClient.GetStream();
// Send request.
StreamWriter streamWriter = new StreamWriter(nsr);
streamWriter.Write(requestMessage);
streamWriter.Flush();
// Print out response.
StreamReader streamReader = new StreamReader(nsr);
Console.Write(streamReader.ReadToEnd());
}
' Initialize request message.
Dim requestMessage As String = "GET / HTTP/1.0" & _
Chr(13) & Chr(10) & _
"Host: www.google.com" & _
Chr(13) & Chr(10) & _
"Connection: close" & _
Chr(13) & Chr(10) & _
Chr(13) & Chr(10)
' Create a new instance of the ProxyClient.
Using proxyClient As New ProxyClient("www.google.com", 80, _
ProxyType.HttpConnect, ProxyAuthentication.Basic, _
"proxyserver", 808, "username", "password", Nothing)
Dim nsr As NetworkStream = proxyClient.GetStream()
' Send request.
Dim streamWriter As New StreamWriter(proxyClient.GetStream())
streamWriter.Write(requestMessage)
streamWriter.Flush()
' Print out response.
Dim streamReader As New StreamReader(proxyClient.GetStream())
Console.Write(streamReader.ReadToEnd())
End Using
More samples:
Click on
tab to see more samples.
Royalty-FREE Licenses
Prices include royalty-free distributation, for unlimited site deployment.
Click on the desired license below to add it to your cart.