无法在php中使用curl和port发布url

时间:2017-04-12 02:24:34

标签: php curl

我无法使用tcp port发布url我的代码是

$curl = curl_init('http://97.74.237.227:9595/report?query=Hello+World'); 
curl_setopt($curl, CURLOPT_FAILONERROR, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($curl);
echo $result;

0 个答案:

没有答案