title: Authorization header is not set with PHP cURL
body: <p>I'm trying to make an API-call from PHP using cURL.</p>
  
  <p>This is my code:</p>
  
  <pre><code>$ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "http://localhost/api/");
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array('sql' =&gt; $sql)));
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: MY-API-KEY'));
  $response = curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>It seems as if the Authorization-header is not set. I've tried to Google around, where some say that the header is not recognized correctly. Can anyone help?
  My code does work for API-calls without Authorization needed.</p>
  
  <p>UPDATE:
  Calling the command via the command line tool curl:</p>
  
  <pre><code>curl -H 'Authorization: MY-API-KEY'...
  </code></pre>
  
  <p>everything works.</p>
  
  <p>My feedback from the PHP cURL is "Access denied".</p>