Guest User

Untitled

a guest
Oct 15th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // Create a stream
  2. $opts = array(
  3. 'http'=>array(
  4. 'method'=>"GET",
  5. 'header'=>"Accept-language: enrn" .
  6. "Cookie: foo=barrn"
  7. )
  8. );
  9.  
  10. $context = stream_context_create($opts);
  11.  
  12. // Open the file using the HTTP headers set above
  13. $file = file_get_contents('http://www.example.com/', false, $context);
  14.  
  15. "Cookie: user=3345&pass=abcdrn"
  16.  
  17. "Cookie: user=3345rn" .
  18. "Cookie: pass=abcdrn"
  19.  
  20. Cookie: user=3345; pass=abcd
  21.  
  22. Cookie: user=3345; pass=abcd
Add Comment
Please, Sign In to add comment