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