Skip to content

SocksSharp provides support for Socks4/4a/5 proxy servers to HttpClient

License

Notifications You must be signed in to change notification settings

nickolasKrayn/SocksSharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SocksSharp

AppVeyor NuGet License

SocksSharp

SocksSharp provides support for Socks4/4a/5 proxy servers to HttpClient

Installation

Install as NuGet package:

Install-Package SocksSharp

Basic Usage

var settings = new ProxySettings()
{
	Host = "127.0.0.1",
	Port = 1080
};

using (var proxyClientHandler = new ProxyClientHandler<Socks5>(settings))
{
	using (var httpClient = new HttpClient(proxyClientHandler))
	{
		var response = await httpClient.GetAsync("http://example.com/");
	}
}

Interesting? See more examples

Contributing

Feel free to open an issue or submit a pull request. To make sure your pull request doesn't go in vain (gets declined), open an issue first discussing it (before actually implementing it).

About

SocksSharp provides support for Socks4/4a/5 proxy servers to HttpClient

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%