PHP 4.0 Bug #7677 Updated: WWW-Authenticate Problem
| From: | rasmus@php.net | Date: | Tue, 07 Nov 2000 17:00:46 +0000 |
| Subject: | PHP 4.0 Bug #7677 Updated: WWW-Authenticate Problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37366@lists.php.net to get a copy of this message | ||
ID: 7677
Updated by: rasmus
Reported By: oleg@vsi.ru
Status: Closed
Bug Type: Apache related
Assigned To:
Comments:
Send the Status code before the WWW-authenticate header.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-07 12:27:22] oleg@vsi.ru
I have Apache 1.3.9 + PHP 4.0.3pl1 compiled as Apache module. When I have access to page with
following script from Netscape 4/Linux, this script works correctly. But from IE5, script always
authenticate fail. Why ?
<?
if(!isset($PHP_AUTH_USER)) {
Header("WWW-Authenticate: Basic realm="TEST"");
Header("HTTP/1.0 401 Unauthorized");
echo "Authenticate requiredn";
exit;
} else {
echo "User: $PHP_AUTH_USER, Pass: $PHP_AUTH_PW.<P>";
}
?>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7677