Re: Bug #915: $REMOTE_USER is lost afer POST
| From: | Christian Cartus | Date: | Sat, 14 Nov 1998 19:17:10 +0000 |
| Subject: | Re: Bug #915: $REMOTE_USER is lost afer POST | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-2404@lists.php.net to get a copy of this message | ||
that's it. got it. now it works perfectly!!!
thx a lot
chris
Zeev Suraski wrote:
>
> 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
--
Christian Cartus I-D Media GmbH & Co. KG
Tel. +49-7365/960543 Dewanger Str. 22
+49-177/7644933 73457 Essingen-Forst
Fax: +49-7365/5060
E-Mail: chris.cartus@idgruppe.com christian@cartus.com
ICQ-Mail: 964898@pager.mirabilis.com ICQ-UIN: 964898
--
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