title: GET request with headers using cURL PHP
body: <p>I m trying to make a GET request with headers using cURL PHP.  I am getting an empty response form the server.  I would like to know if I have made this request correctly using cURL PHP.</p>
  
  <pre><code> // curl GET request with headers
   $url = $sendMailURL;
   $requestHeaders = array(
       $hConLength_.':'.$conLengthValue,
       $hConType_.':'.$conTypeValue,
       $hHost_.':'.$conHostValue,
       $hDate_.':'.$conAmzDateValue); 
  
  
   $ch = curl_init($url);
   curl_setopt($ch, CURLOPT_HTTPHEADER, $requestHeaders);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
   $output = curl_exec($ch);
  
  
  if(curl_error($ch)){
  echo 'curl error: '.curl_error($ch);
  }else{
     print_r($output);
  }
  </code></pre>
  
  <p>print_r($requestHeaders):</p>
  
  <blockquote>
  <pre><code>Array ( [0] =&gt; Content-Length:207 
          [1] =&gt; Content-Type:application/x-www-form-urlencoded 
          [2] =&gt; Host:email.eu-west-1.amazonaws.com 
          [3] =&gt; X-amz-date:20180115T224433Z )
  </code></pre>
  </blockquote>