Code: Alles auswählen
$username = 'xyz';
$password = 'xyz';
$url = 'http://<...>.html?USERNAME='.$username.'&PASSWORD='.$password;
preg_match('/([A-Za-z0-9]{6})/', file_get_contents($url), $cookie);
$url = 'http://<...>.html';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Cookie: SessionCookie=".$cookie[1]));
curl_exec($ch);
curl_close($ch);
- cURL oder etwas ähnliches mit der Möglichkeit http-requests mit modifizierten Headern durchzuführen
- preg_match oder etwas vergleichbares