/* set proxy * Note: * 1. current only support http proxy * 2. current only support single proxy */ public void setProxy(string proxyIp, int proxyPort) { gProxy = new WebProxy(proxyIp, proxyPort); }
然后后续的(去用getUrlRespHtml等等)去访问网络,就会自动使用该代理了。
/* set proxy * Note: * 1. current only support http proxy * 2. current only support single proxy */ public void setProxy(string proxyIp, int proxyPort) { gProxy = new WebProxy(proxyIp, proxyPort); }
然后后续的(去用getUrlRespHtml等等)去访问网络,就会自动使用该代理了。