Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Apache remote_user lost with POST

by slatibart (Acolyte)
on Jun 16, 2011 at 13:51 UTC ( #909954=perlquestion: print w/ replies, xml ) Need Help??
slatibart has asked for the wisdom of the Perl Monks concerning the following question:

I have a simple .htaccess
AuthType Basic AuthName "Test" AuthBasicProvider file AuthUserFile /path .. /www/cgi/test/.htpasswd AuthGroupFile /dev/null <Limit GET> require valid-user </Limit> Options -Indexes
Authentification is working.

remote_user is set when i use GET to access the perl script in this dir. When i use POST the remote_user is empty. I've couldn't find a confirmation on the web/docs but indications seems that only the first the the authentication runs the apache sets remote_user. And it doesn't work with perl.

So, is that true and if yes.

How can i change this behavior ?

I've already looked at CPAN but all the solutions or frameworks looks to be big for me. I only want to keep the remote_user variable.

What would be the best approach ?

Thanks !

Comment on Apache remote_user lost with POST
Download Code
Re: Apache remote_user lost with POST
by MidLifeXis (Monsignor) on Jun 16, 2011 at 14:08 UTC

    You are limiting the requirement for a valid user to GET requests only. Change (or remove) your Limit section.

    Apache administrator / configuration issue, not a Perl issue.

    --MidLifeXis

      Thanks, so obvious i didn't saw it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://909954]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-03 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls