note 28491 modified in features.http-auth by vrana

From: Date: Tue, 17 Aug 2004 13:55:59 +0000
Subject: note 28491 modified in features.http-auth by vrana
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79783@lists.php.net to get a copy of this message
Some servers won't support the HTTP1.0 specification and will give an error 500 (for instance). This happened with a server where I uploaded an authentication script. If it happens, you can try the HTTP1.1 header syntax : <?php header("WWW-Authenticate: Basic realm=\"My Realm\""); header('status: 401 Unauthorized'); ?> --was-- Some servers won't support the HTTP1.0 specification and will give an error 500 (for instance). This happened with a server where I uploaded an authentication script. If it happens, you can try the HTTP1.1 header syntax : header("WWW-Authenticate: Basic realm=\"My Realm\""); header('status: 401 Unauthorized'); http://php.net/manual/en/features.http-auth.php

« previous php.notes (#79783) next »