note 35673 added to features.http-auth

From: Date: Wed, 10 Sep 2003 15:28:47 +0000
Subject: note 35673 added to features.http-auth
Groups: php.notes 
Request: Send a blank email to php-notes+get-55941@lists.php.net to get a copy of this message
Watch out for stray tab characters in WWW-Authenticate header statements. This appears to break basic authentication on IE for Windows. For example: function authenticate() { header( "WWW-Authenticate:\t Basic realm=\"This won't work\""); header('HTTP/1.0 401 Unauthorized'); echo "You must enter a valid login ID and password to access this resource\n"; exit; } The above will cause IE on windows to not display the authentication dialog. ---- Manual Page -- http://www.php.net/manual/en/features.http-auth.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35673 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35673&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35673&report=yes

« previous php.notes (#55941) next »