title: Send GET HTTPS request with custom headers PHP
body: <p>I want to send a HTTPS request in PHP with custom parameters. I tried with curl method :</p>
  
  <pre><code>$ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, 'https://myurl.com/item/books');
  curl_setopt($ch,CURLOPT_HEADER,array('Token: 888888888'));
  
  $content = curl_exec($ch);
  echo $content;
  $info = curl_getinfo($ch);
  print_r($info['request_header']);
  </code></pre>
  
  <p>My problem is that my request (GET) is in HTTPS and I can't send the header parameter Token: 888888.
  I have tried with:</p>
  
  <pre><code>curl_setopt($ch,CURLOPT_HTTPHEADER,array('Token: 888888888'));
  </code></pre>
  
  <p>And it doesn't work because my request is in HTPPS. I need the proper method to send my HTTPS request with custom headers.
  (Many example in Internet are for HTTP request not HTTPS)</p>
  
  <p>Thanks.</p>