Adding -506 at www-authenticate

ja3

Verified User
Joined
Mar 28, 2004
Messages
51
Hello, I have got the following problem:

If I add this in a php script:

PHP:
header('WWW-Authenticate: Basic realm="AdminPage"');  
header('HTTP/1.0 401 Unauthorized');  
echo 'Authorization Required.';  
exit();
The page popups with the username/password question but it adds -506 next tot the AdminPage message. So the message is AdminPage-506.

With .htaccess/.htpasswd combination it does not add the -506. How can I fix this?

Apache v1.3.33 and PHP v4.3.10

Thanks for your help,
ja3
 
Last edited:
Back
Top