- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
- stream_context_create: documentation ( source)
- http_build_query: documentation ( source)
<?php
$postdata = http_build_query(
array(
'__VIEWSTATE' => 'dDwtOTM4MzIzMjk0Ozs+',
'_nameTextBox' => 'jan',
'_zoekButton' => 'Zoek',
'numberOfLettersField' => '3'
)
);
$opts = array('http' =>
array(
'method' => 'GET',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = file_get_contents('http://kwt.veluwseonderwijsgroep.nl/CupwebWB/Default.aspx', false, $context);
var_dump($result);
echo "sd";