Configurar proxy no .NET HttpClient
The HTTP client for C# and the rest of .NET. Aponte para o pool residencial da Eveses com a configuração abaixo — a geolocalização fica no nome de usuário, então trocar de país não exige mexer em mais nada.
proxy.eveses.com:12321 · SOCKS5 em 32325 · 199 países · a partir de $7.35/GB
The proxy lives on the handler, and `HttpClient` is supposed to be a singleton — but a singleton binds the handler for its lifetime, so a rotating geo needs either `SocketsHttpHandler.PooledConnectionLifetime` or one client per geo.
Configuração
using System.Net;
var handler = new HttpClientHandler
{
Proxy = new WebProxy("http://proxy.eveses.com:12321")
{
Credentials = new NetworkCredential(
"eveses_user_country-us", "YOUR_PROXY_PASSWORD"),
},
UseProxy = true,
};
// One client per geo; reuse it.
var client = new HttpClient(handler) { Timeout = TimeSpan.FromSeconds(30) };
var body = await client.GetStringAsync("https://target-site.com");Troque de país sem mexer no .NET HttpClient
eveses_user_country-deeveses_user_country-de_session-ab12cd34_lifetime-30mA geolocalização e a sessão ficam no nome de usuário, não no host nem na porta. Toda a configuração desta página continua igual quando você troca de país — você edita uma única string. São 199 países endereçáveis, com tokens de cidade e região na maioria deles.
Perguntas frequentes
Como configuro um proxy no .NET HttpClient?›
Como escolho o país pelo qual o .NET HttpClient sai?›
Como mantenho o mesmo IP entre requisições no .NET HttpClient?›
Quanto custa?›
Outras integrações
Rode .NET HttpClient sobre IPs residenciais
$7.35/GB a 1 GB, $2.57/GB em volume — as mesmas credenciais em todas as ferramentas.
Obter proxies →