Mailinglisten-Archive |
Hallo, ich nochmal....
Und steh aufm schlauch
> ...
> $credentials="Authorization: Basic
> ".base64_encode("$username:$password")."\r\n";
> ...
>
> Den $credentials schreibt er dann zwischen den "Host:" und
> den "Content-Type:" Header. Als header()-Command sollte das
also ungefähr so:
$credentials="Authorization: Basic".base64_encode("name:passwd")."\r\n";
$head ="
GET /kunden/gast/ HTTP/1.1\r\n
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword, */*\r\n
Accept-Language: de\r\n
Accept-Encoding: gzip, deflate\r\n
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n
Host: gbsoft.de\r\n
".$credentials."
Content-Type: text/html\r\n
Connection: Keep-Alive\r\n";1
header($head);
Das ergbnis ist dann, dass der browser eine weile läd und den header dann
einfach ausgibt.
Irgendwas mache ich doch falsch.
Marc
php::bar PHP Wiki - Listenarchive