2.1.2. C#中给HTTP添加代理Proxy支持

示例代码:


using System.Net;
WebProxy gProxy = new WebProxy("127.0.0.1", 8087);
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Proxy = gProxy;

        

详见:【已解决】C#中HttpWebRequest支持代理