in reply to Where did my $ENV{"REMOTE_USER"} go?

OK, here's clue #1:

The problem only strikes when the program is called with the POST method.

When it calls itself with GET, everything is fine.

  • Comment on Re: Where did my $ENV{"REMOTE_USER"} go?

Replies are listed 'Best First'.
Re: Re: Where did my $ENV{"REMOTE_USER"} go?
by monkfish (Pilgrim) on Sep 04, 2001 at 04:04 UTC
    Your .htaccess (or httpd.conf) is probably set to only authenticate GETs not POSTs. Fix this and your REMOTE_USER will be fixed.

    Something like the following should fix you up:

    <Directory /your/dir/here> AuthUserFile /some/path/htpasswd AuthType Basic AuthName PasswordRequired <Limit GET POST> require valid-user </Limit> </Directory>

    This is not really a perl problem but an apache problem (feature really) that GET and POST (and PUT, etc) can all be authenticated independently.

    -monkfish (The Fishy Monk :)

      Oops!

      Thank you!