Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $opts = array(
- 'http'=>array(
- 'method'=>'POST',
- 'header'=>'Content-type: application/x-www-form-urlencoded',
- )
- );
- $opts['http']['content'] = json_encode(
- array('login'=> $_POST['login'],
- 'pass'=> $_POST['pass'],
- 'note'=> $_POST['note'])
- );
- $context = stream_context_create($opts);
- $st = file_get_contents('https://ei3.rld.org/rest/api/student/create.php', false, $context);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement