title: Getting undefined index error in cURL options
body: <p>I have the following options that I am trying to set for my cURL object:</p>
  
  <pre><code>$options = array(
    CURLOPT_URL =&gt; $targetUrl,
    CURLOPT_HEADER =&gt; false,
    CURLOPT_HTTPHEADER =&gt; array(
      'Content-Type: ' . $_SERVER['CONTENT_TYPE'],
      'Referer: ' . $_SERVER['HTTP_REFERER']
    ),
    CURLOPT_RETURNTRANSFER =&gt; true,
    CURLOPT_FOLLOWLOCATION =&gt; true,
    CURLOPT_HTTPAUTH =&gt; CURLAUTH_ANY,
    CURLOPT_USERPWD =&gt; "$username:$password"
  );
  </code></pre>
  
  <p>And I get the following errors:</p>
  
  <blockquote>
    <p>Notice: Undefined index: CONTENT_TYPE</p>
    
    <p>Notice: Undefined index: HTTP_REFERER</p>
  </blockquote>
  
  <p>Am I specifying the wrong name for those options, or are they just not being provided in the header?</p>