i am new to curl and making a program which will search using yahoo search engine here is my code:-
<?php
$handle=curl_init();
curl_setopt($handle,CURLOPT_URL,"http://search.yahooapis.com/ImageSearchServ/V1/imageSearch");
curl_setopt($handle,CURLOPT_POST,true);
//curl_setopt($handle,CURLOPT_POSTFEILDS,"appid=$appID&query='water bear&results=5'");
curl_setopt($handle,CURLOPT_RETURNTRANSFER,true);
$response=curl_exec($handle);
curl_close($handle);
print_r($response);
?>
when i run this code the browser does not show any error message or any response it just bzy in requesting to the server like an infinite loop. can you please help me
Thanks in advance