title: Send cookie with file_get_contents
body: <p>The example on PHP manual shows how you can use stream contexts to send a cookie. Here is the excerpt:</p>
  
  <pre><code>// Create a stream
  $opts = array(
    'http'=&gt;array(
      'method'=&gt;"GET",
      'header'=&gt;"Accept-language: en\r\n" .
                "Cookie: foo=bar\r\n"
    )
  );
  
  $context = stream_context_create($opts);
  
  // Open the file using the HTTP headers set above
  $file = file_get_contents('http://www.example.com/', false, $context);
  </code></pre>
  
  <p>How do you send more than one cookie? Like #1 or #2, or what?</p>
  
  <p>#1</p>
  
  <pre><code>"Cookie: user=3345&amp;pass=abcd\r\n"
  </code></pre>
  
  <p>#2</p>
  
  <pre><code>"Cookie: user=3345\r\n" . 
  "Cookie: pass=abcd\r\n"
  </code></pre>