Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $options = array(
- 'http' => array(
- 'timeout' => 100,
- 'method' => 'POST',
- 'header' => "Accept-language: en\r\n"
- . "Cookie: cookieName=value"
- /*
- * these are just some examples feel free to populate with anything your protocol (http in this case) supports
- */
- )
- );
- $context = stream_context_create( $options );
- file_get_contents('http://someUrl', null, $context );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement