I am using proxies in my HttpClient for my c# program. here is the code :
string proxy = "ip:port";
var parsedProxy = proxy.Split(':');
var handler = new HttpClientHandler
{
UseProxy = true,
UseDefaultCredentials = false,
UseCookies = true,
AllowAutoRedirect = false,
Proxy = new WebProxy(parsedProxy[0], int.Parse(parsedProxy[1])),
};
var client = new HttpClient(handler);
Then, every request made with this client uses the proxy. However, I can only put HTTP proxies in. How can I put socks4/socks5 proxies into it ?