title: php curl_exec returns empty
body: <pre><code> $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, $url);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($ch, CURLOPT_PROXY, $proxy); // $proxy is ip of proxy server
   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
   curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
   curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
   curl_setopt($ch, CURLOPT_TIMEOUT, 10);
   $httpCode = curl_getinfo($ch , CURLINFO_HTTP_CODE); // this results 0 every time
   echo '&lt;br&gt; curl'.$ch; //this line outputs resource id#5
   $exec = stripslashes(curl_exec($ch)); 
   echo '&lt;br&gt; exec'.curl_exec($ch); //this results blank
  </code></pre>
  
  <p>i am confused why $exec does not return anything ,i am new to curl please help, thanks in advance</p>