All Projects → MihaZupan → Httptosocks5proxy

MihaZupan / Httptosocks5proxy

Licence: mit
C# Http to Socks5 proxy implementation

Projects that are alternatives of or similar to Httptosocks5proxy

Charon Spring Boot Starter
Reverse proxy implementation in form of a Spring Boot starter.
Stars: ✭ 155 (-7.74%)
Mutual labels:  proxy
Quic Proxy
A http/https proxy using QUIC as transport layer
Stars: ✭ 159 (-5.36%)
Mutual labels:  proxy
Cloudflare Cors Anywhere
CORS "anywhere" proxy in a Cloudflare worker. DEMO at: https://test.cors.workers.dev/
Stars: ✭ 162 (-3.57%)
Mutual labels:  proxy
Laravel Proximage
🌐 Laravel Proximage is a handy package for proxying images.
Stars: ✭ 156 (-7.14%)
Mutual labels:  proxy
Potatso
Potatso is an iOS client that implements Shadowsocks proxy with the leverage of NetworkExtension framework. ***This project is unmaintained, try taking a look at this fork https://github.com/shadowcoel/shadowcoel instead.
Stars: ✭ 1,925 (+1045.83%)
Mutual labels:  proxy
Zsh Proxy
🔩 An oh-my-zsh plugin to configure proxy
Stars: ✭ 162 (-3.57%)
Mutual labels:  proxy
Jupyter Server Proxy
Jupyter notebook server extension to proxy web services.
Stars: ✭ 153 (-8.93%)
Mutual labels:  proxy
Undermoon
Mordern Redis Cluster solution for easy operation.
Stars: ✭ 166 (-1.19%)
Mutual labels:  proxy
Unfx Proxy Checker
Unfx Proxy Checker - Powerful proxy checker with huge features and beautiful design. Easy sorting and filtering by all parameters.
Stars: ✭ 158 (-5.95%)
Mutual labels:  proxy
Haproxy
HAProxy Load Balancer's development branch (mirror of git.haproxy.org)
Stars: ✭ 2,463 (+1366.07%)
Mutual labels:  proxy
Powertunnel
Simple, scalable, cross-platform and effective solution against government censorship
Stars: ✭ 157 (-6.55%)
Mutual labels:  proxy
Powertunnel Android
Simple, scalable, cross-platform and effective solution against government censorship for Android
Stars: ✭ 157 (-6.55%)
Mutual labels:  proxy
3proxy
3proxy - tiny free proxy server
Stars: ✭ 2,263 (+1247.02%)
Mutual labels:  proxy
Secret Agent
The web browser that's built for scraping.
Stars: ✭ 151 (-10.12%)
Mutual labels:  proxy
Xctr Hacking Tools
XCTR Hacking Tools
Stars: ✭ 165 (-1.79%)
Mutual labels:  proxy
Secretless Broker
Secure your apps by making them Secretless
Stars: ✭ 155 (-7.74%)
Mutual labels:  proxy
Tree Gateway
This is a full featured and free API Gateway
Stars: ✭ 160 (-4.76%)
Mutual labels:  proxy
Configurable Http Proxy
node-http-proxy plus a REST API
Stars: ✭ 166 (-1.19%)
Mutual labels:  proxy
Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (+1216.67%)
Mutual labels:  telegram-bot
Golang Proxy
Golang version of proxy mining tool with evaluation system
Stars: ✭ 163 (-2.98%)
Mutual labels:  proxy

HttpToSocks5Proxy NuGet

This library allows you to connect over Socks5 proxies when using the .NET HttpClient.

It implements the IWebProxy interface and can therefore be used with all libraries that support HTTP/HTTPS proxies.

Usage with an HttpClient

using MihaZupan;

var proxy = new HttpToSocks5Proxy("127.0.0.1", 1080);
var handler = new HttpClientHandler { Proxy = proxy };
HttpClient httpClient = new HttpClient(handler, true);

var result = await httpClient.SendAsync(
    new HttpRequestMessage(HttpMethod.Get, "https://httpbin.org/ip"));

Console.WriteLine("HTTPS GET: " + await result.Content.ReadAsStringAsync());

Usage with Telegram.Bot library

The library was originally designed to fight censorship attempts against Telegram.

Using it with the Telegram Bot Library is therefore a breeze.

using MihaZupan;

var proxy = new HttpToSocks5Proxy("my-socks-server.com", 1080);

// Or if the proxy server requires credentials (gssapi is not supported):
new HttpToSocks5Proxy("my-socks-server.com", 1080, "username", "password");

// Some proxies limit target connections to a single IP address
// If that is the case you have to resolve hostnames locally
proxy.ResolveHostnamesLocally = true;

TelegramBotClient Bot = new TelegramBotClient("API Token", proxy);

I need more latency

Worry not, you can now chain SOCKS proxies with this library

var proxy = new HttpToSocks5Proxy(new[] {
    new ProxyInfo("tor-proxy.com", 1080),
    new ProxyInfo("random-socks.com", 1090),
    new ProxyInfo("tor-proxy.com", 1080)
});

Installation

Install as a NuGet package:

Package manager:

Install-Package HttpToSocks5Proxy
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].