cURL / Mailing Lists / curl-and-php / Single Mail


Re: Retrieving the authenticated username:password from server with PHP

From: <>
Date: Tue, 18 Mar 2008 00:55:45 -0400

Christopher Vrooman wrote:
> I would assume they would show up in $_SERVER['PHP_AUTH_USER'] &
> $_SERVER['PHP_AUTH_PW'], but those two variables have never, ever
> appeared for me.
I can confirm that these variables do indeed work, and are set in PHP
when a user is authenticated by simple http auth - I was working with a
project using these yesterday.

Received on 2008-03-18