Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $postdata = http_build_query(['test' => 'data']);
- $opts = ['http' =>
- [
- 'method' => 'POST',
- 'header' => 'Content-type: application/x-www-form-urlencoded',
- 'content' => $postdata
- ]
- ];
- $context = stream_context_create($opts);
- echo file_get_contents('http://glasulvietii.ro/', false, $context); //merge
- echo file_get_contents('http://glasulvietii.ro/test.php', false, $context); //merge
- //test.php e un fișier care face var_dump la $_POST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement