设置SOCK5代理
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1:1080");
设置HTTP代理
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt($ch, CURLOPT_PROXY, "http://127.0.0.1:1080");
Powered By ZEROPLACE.CN CopyRight 2008, 汤姆大叔的博客 浙ICP备09078797号-1