我试图卷曲http://island-alpaca.selfip.com:10202/SnapShotJPEG?Resolution=640x480Quality=Standard这个位置并每次返回空页面。我的代码是卷曲返回null页
$image = 'http://island-alpaca.selfip.com:10202/SnapShotJPEG?Resolution=640x480&Quality=Standard';
$ch = curl_init();
curl_setopt($ch,CURLOPT_VERBOSE,true);
curl_setopt($ch, CURLOPT_URL, $image);
$store = curl_exec ($ch);
echo $store;
curl_close ($ch);
有人可以告诉我失踪了吗?
为什么你在URL中有空间? –
Sudhir给了你答案,你没有returntransfer +没有改变页面的标题为jpg。 –