php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7677 WWW-Authenticate Problem
Submitted: 2000-11-07 12:27 UTC Modified: 2000-11-07 18:00 UTC
From: oleg at vsi dot ru Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3pl1 OS: FreeBSD 4.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: oleg at vsi dot ru
New email:
PHP Version: OS:

 

 [2000-11-07 12:27 UTC] oleg at vsi dot 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 required\n";
     exit;
   } else {
     echo "User: $PHP_AUTH_USER, Pass: $PHP_AUTH_PW.<P>";
   }
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-07 18:00 UTC] rasmus@php.net
Send the Status code before the WWW-authenticate header.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed May 18 13:05:45 2022 UTC