Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mihazupan/httptosocks5proxy

C# Http to Socks5 proxy implementation
https://github.com/mihazupan/httptosocks5proxy

http-socks5 proxy proxy-chain socks5-http socks5-proxy telegram-bot

Last synced: 26 days ago
JSON representation

C# Http to Socks5 proxy implementation

Awesome Lists containing this project

README

        

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://stand-with-ukraine.pp.ua)

# HttpToSocks5Proxy

As of .NET 6, `SocketsHttpHandler` [supports connecting to Socks4, Socks4a and Socks5 proxies](https://devblogs.microsoft.com/dotnet/dotnet-6-networking-improvements/#socks-proxy-support)!

This project is now archived and no longer maintained. You can use this library on older versions of .NET. See the [archived branch](https://github.com/MihaZupan/HttpToSocks5Proxy/tree/archived).

```c#
var client = new HttpClient(new SocketsHttpHandler()
{
Proxy = new WebProxy("socks5://127.0.0.1:9050")
});

var content = await client.GetStringAsync("https://check.torproject.org/");
Console.WriteLine(content);
```