【发布时间】:2019-02-26 13:39:46
【问题描述】:
我为一些网站做了检查,但是,我需要添加代理支持:
using (var request = new HttpRequest())
{
request.Proxy = new HttpProxyClient(ProxyRandom());
}
public static string ProxyRandom()
{
Random rnd = new Random();
return Proxies[rnd.Next(0, Proxies.Count)];
}
由于某种原因,它不起作用...当我尝试使用代理时,程序不会发布任何数据
当我使用 xNet 库时,添加代理支持的正确方法是什么?
【问题讨论】: