title: PHP Curl for Rest API not working
body: <p>This works fine directly in bash:</p>
  
  <pre><code>curl https://test.url.com/api/id/98765 -H 'API_KEY: xxxxxxxxxx' -H 'Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=='
  </code></pre>
  
  <p>This does not work in PHP (nothing is returned):</p>
  
  <pre><code>$curl = curl_init();
  curl_setopt($curl, CURLOPT_URL,'https://test.url.com/api/id/98765');
  curl_setopt($curl, CURLOPT_HEADER, 1);
  curl_setopt($curl, CURLOPT_HTTPHEADER,  array(
                                              "API_KEY: xxxxxxxxxx8",
                                              "Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=="
                                              ));         
  curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
  curl_setopt($curl, CURLOPT_VERBOSE, 1);
  $results = curl_exec($curl);
  echo 'out: '.$results;
  </code></pre>
  
  <p>No errors are returned. I'm expecting results in json</p>