我使用php curl,它在localhost
上工作正常,但在服务器上没有结果(60秒后尝试)
$ch = curl_init ($url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_PROXY, 'x.x.x.x:808');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt ($ch, CURLOPT_COOKIEJAR, $ckfile);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
echo $output = curl_exec ($ch);