title: Bigcommerce Api using curl in php
body: <p>I have demo store on bigcommerce, 
  Store Url : <a href="https://store-bwvr466.mybigcommerce.com/api/v2" rel="nofollow">https://store-bwvr466.mybigcommerce.com/api/v2</a></p>
  
  <p>I want to get records using CURL, but curl is not properly working.
  here is my code...</p>
  
  <pre><code>$ch = curl_init();
  
  $urlStringData = 'http://getcomposer.org/installer ';
  curl_setopt($ch, CURLOPT_HEADER, true);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
  
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,10);
  
  curl_setopt($ch, CURLOPT_URL, $urlStringData ); 
  
  
  if(curl_errno($ch))
     echo 'Curl error: '.curl_error($ch);
  
  $result = curl_exec($ch);
  curl_close ($ch);  
  echo '&lt;pre&gt;';
  
  print_r($result);
  </code></pre>