Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1.             $options = array(
  2.                 'http' =>
  3.                     array(
  4.                         'method' => 'POST',
  5.                         'header' => 'Content-type: application/x-www-form-urlencoded;charset=UTF-8',
  6.                         'content' => 'user=hello&password=world',
  7.                         'ignore_errors' => true
  8.                     )
  9.             );
  10.             $context = stream_context_create($options);
  11.  
  12.             $result = file_get_contents('http://site.ru/blabla', false, $context);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement