- stream_context_create: documentation ( source)
- stream_get_contents: documentation ( source)
- fopen: documentation ( source)
<?php
$params = array('http' => array(
'method' => 'POST',
'content' => "answer[]=4148"
));
$ctx = stream_context_create($params);
$fp = fopen("http://apps.regiocast.de/MasterVoting/app/pub/index.php?id=893", 'rb', false, $ctx);
if (!$fp) {
throw new Exception("Problem with http://apps.regiocast.de/MasterVoting/app/pub/index.php?id=893");
}
$response = @stream_get_contents($fp);
if ($response === false) {
throw new Exception("Problem reading data from http://apps.regiocast.de/MasterVoting/app/pub/index.php?id=893");
}
echo $response;