title: Magento, curl_exec function not working
body: <p>I am doing instagram login in magento, My <strong>curl_exec</strong> is not giving me the output here. I dont know what mistake i had done.</p>
  
  <p>My code:   </p>
  
  <pre><code>     private function _makeOAuthCall($apiData) {
  $apiHost = self::API_OAUTH_TOKEN_URL;
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_URL, $apiHost);
  curl_setopt($ch, CURLOPT_POST, count($apiData));
  curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($apiData));
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   echo "&lt;pre&gt;";
  echo "get test::::";
  print_r($ch);
  $jsonData = curl_exec($ch);
  echo "      gggg    ";
  print_r($jsonData); die;
  curl_close($ch);
  return json_decode($jsonData);
  </code></pre>
  
  <p>}</p>
  
  <p>Before <strong>curl_exe</strong> function, I am getting <code>$ch</code> value as <strong>Resource id #814</strong>, but the <code>curl_exec()</code> functions <code>$jsondata</code> variable return empty result.</p>
  
  <p>Can anyone help me to fix this ?
  Thanks in advance.</p>