title: curl execution returns empty in php
body: <p>I'm trying to execute a url</p>
  
  <pre><code>$ch1 = curl_init();
  
      if (!$ch1) die("Couldn't initialize a cURL handle");
  
  $headerinfo = apache_request_headers();
  curl_setopt($ch1, CURLOPT_URL, $returnurl);
  curl_setopt($ch1, CURLOPT_HEADER, 0);
  curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch1, CURLOPT_POSTFIELDS, $curlPost);
  curl_setopt($ch1, CURLOPT_USERAGENT, $headerinfo['User-Agent']);
  curl_setopt($ch1, CURLOPT_TIMEOUT,1*60);
  $result = curl_exec($ch1);
      $responseCode = curl_getinfo($ch1, CURLINFO_HTTP_CODE);
      curl_close($ch1);
  
      echo "&lt;pre&gt;";
      print_r($httpCode);
      echo "&lt;/pre&gt;";
  echo "result".$result;
      echo "responseCode".$responseCode;
      echo "curlError".curl_error($ch1);
  </code></pre>
  
  <p>While executing in browser i'm getting xml displayed. but in curl execution i'm getting response as empty. what could be the reason.</p>