Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mihazupan/httptosocks5proxy
- Owner: MihaZupan
- Archived: true
- Created: 2018-04-29T12:34:00.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-06-07T20:12:29.000Z (over 2 years ago)
- Last Synced: 2024-11-05T22:15:19.108Z (about 1 month ago)
- Topics: http-socks5, proxy, proxy-chain, socks5-http, socks5-proxy, telegram-bot
- Size: 46.9 KB
- Stars: 227
- Watchers: 12
- Forks: 37
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-network-stuff - **93**星
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);
```