华东六省15选5开奖 www.jpzd.net function get(){
	
	$curl=curl_init();
	curl_setopt($curl, CURLOPT_URL, "//www.baidu.com/");
	curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0');
	curl_setopt($curl, CURLOPT_REFERER, '//www.jpzd.net/');
	curl_setopt($curl, CURLOPT_POST, true);
	curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($param));
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, true);
	curl_setopt($curl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
	curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
	curl_setopt($curl, CURLOPT_PROXY, "180.186.11.121");
	curl_setopt($curl, CURLOPT_PROXYPORT, "37211");
	curl_setopt($curl, CURLOPT_PROXYUSERPWD, "taras:taras-ss5"); 
	$result = curl_exec($curl);
	return $result;
	
}


 标签 php curl 代理 获取数据
相关评论(0)
发 布 (Ctrl+Enter)
还没有评论,快来抢沙发吧!