Re: Bug #915: $REMOTE_USER is lost afer POST
| From: | Zeev Suraski | Date: | Sat, 14 Nov 1998 20:32:40 +0000 |
| Subject: | Re: Bug #915: $REMOTE_USER is lost afer POST | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-2402@lists.php.net to get a copy of this message | ||
At 19:22 14/11/98 +0100, Christian Cartus wrote:
>Rasmus Lerdorf wrote:
>>
>> $REMOTE_USER is only set if the target page is set up to require
>> authentication as well. Are you sending the Authorization header from the
>> target of your POST?
>mmh, the page is in the same directory as the htaccess-file, therefor
>the Authorization-information should be sent by the browser. the
>Authorization itself doesn't fail, only the variable $REMOTE_USER is not
>set. if i use the GET-method everything works fine.
It's most definitely not a PHP bug, but the POST method isn't being
authenticated.
Check if you have stuff like <Limit GET> in your .htaccess.
To ensure that the POST request is actually being authenticated, check the
Apache TransferLog file and see whether the POST request has a username in
it (authenticated requests include the username in the corresponding log
line; non authenticated requests have a dash (-) instead).
Once you get the POST request to authenticate (which only has to do with
Apache configuration) - the environment variable REMOTE_USER will be
available.
Zeev
--
Zeev Suraski <zeev@php.net>
For a PGP public key, finger bourbon@netvision.net.il
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net