Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create a stream
- $opts = array(
- 'http'=>array(
- 'method'=>"GET",
- 'header'=>"Accept-language: enrn" .
- "Cookie: foo=barrn"
- )
- );
- $context = stream_context_create($opts);
- // Open the file using the HTTP headers set above
- $file = file_get_contents('http://www.example.com/', false, $context);
- "Cookie: user=3345&pass=abcdrn"
- "Cookie: user=3345rn" .
- "Cookie: pass=abcdrn"
- Cookie: user=3345; pass=abcd
- Cookie: user=3345; pass=abcd
Add Comment
Please, Sign In to add comment