PHP CURL 使用代理访问服务器
摘要:
使用CURL库访问代理服务器function curl_string ($url,$user_agent,$proxy){ $ch = curl_init(); curl_setopt ($ch, CURLOPT_PROXY, $proxy); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt ($ch, CURLOPT_COOKIEJAR, "c:\cookie.txt"); ... 阅读全文
posted @ 2013-02-18 16:41 misoag 阅读(38608) 评论(2) 推荐(0) 编辑