title: Simple Curl request not working
body: <p>I have a function make_curl_request to make curl request. </p>
  
  <pre><code>/**
   * General Function to make curl request */
  function make_curl_request($url, $data)
  {
      ob_start();
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_HEADER, 0);
      curl_setopt($ch, CURLOPT_POST, 1);
      curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
      curl_exec($ch);
      curl_close($ch);
      $strCurlResponse = ob_get_contents();
      ob_end_clean();
      return $strCurlResponse;
  }
  </code></pre>
  
  <p>I am calling it like:</p>
  
  <pre><code>$strGatewayResponse = make_curl_request( REQUEST_URL, compact('strMobileNo', 'strKeywords', 'strApiKey') );
  </code></pre>
  
  <p>I tried the things but can't get my code working fine. Currently its just return string("") as the output. Where am i going wrong?</p>
  
  <p>My target is to simple post few data to next page located on other domain and get its xml response and parse it and display it. Is there any other simple and good solution?</p>