PHP 4.0 Bug #7677: WWW-Authenticate Problem
| From: | oleg at vsi dot ru | Date: | Tue, 07 Nov 2000 11:27:22 +0000 |
| Subject: | PHP 4.0 Bug #7677: WWW-Authenticate Problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37341@lists.php.net to get a copy of this message | ||
From: oleg@vsi.ru
Operating system: FreeBSD 4.0
PHP version: 4.0.3pl1
PHP Bug Type: Apache related
Bug description: WWW-Authenticate Problem
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 required\n";
exit;
} else {
echo "User: $PHP_AUTH_USER, Pass: $PHP_AUTH_PW.<P>";
}
?>
--
Edit Bug report at: http://bugs.php.net/?id=7677&edit=1