Automaticka autentifikace, pomoci header v PHP
Takze zde je kod pro automatickou antentifikaci pomoci Headru v PHP
$header = "POST /path/to/script.cgi HTTP/1.0\r\nAuthorization: Basic ";
$header .= base64_encode("$username:$password") . "\r\n";
$header .= "Content-type: application/x-www-form-urlencoded\r\n";
$header .= "Content-length: " . strlen($request) . "\r\n";
$header .= "Connection: close\r\n\r\n";
« Zpět na seznam