title: Custom curl CURLOPT_HTTPHEADER with result [Authentication-API-Key] => 123456
body: <p>A http connection requires a HTTP POST request with a custom header object Authentication-API-Key</p>
  
  <p>With CURL it's automatically converted to  [HTTP_AUTHENTICATION_API_KEY] => 12345
  Cannot figure out why </p>
  
  <p>A simplle extract from a php class for testing is</p>
  
  <p>Please help me out, how to get a $_SERVER result with [Authentication-API-Key] => 123456</p>
  
  <pre><code>&lt;?php
      $contentType = 'text/xml';
      $method = 'POST';
      $auth = '';
      $header1 = 'Authentication-API-Key: 12345';
      $charset= 'ISO-8859-1';
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "http://localhost/test/returnurl.php");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLINFO_HEADER_OUT, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, Array('Content-type: ' . 
                  $contentType . '; charset=' . $charset,
                  $header1));
  curl_exec($ch);
  
  ?&gt;
  
  &lt;?php
  //http://localhost/test/returnurl.php
  Print_r($_SERVER,true)
  ?&gt;
  </code></pre>
  
  <p>output:</p>
  
  <pre>
  Array
  (
      [HTTP_HOST] => localhost
      [HTTP_ACCEPT] => */*
      [CONTENT_TYPE] => text/xml; charset=ISO-8859-1
      [HTTP_AUTHENTICATION_API_KEY] => 12345
      ...
  )
  </pre>