$_SERVER vartiables are dropped on my hosting running CGI

yenavsepop

New Member
The variables $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] are returned as empty because of the setup my hosting has (Running on a CGI interface). Is there any work around to get them to work as I need to use them for auth. I can't move hosting or change the interface.I am sending auth requests via curl to a url /api/projects/...which is interpreted by a modrewrite and then processed according to the rules.When I try this on my local host running MAMP, or I use my other hosting it works ok (not using CGI interface) but on the server I need it to run on, the variables are dropped!Can some one help me please?
 
Back
Top