tags:

views:

53

answers:

1

I'm setting a CURL authentication, using CURLOPT_USERPWD:

curl_setopt($curl_handle, CURLOPT_USERPWD, $login); // Authenticate

How can I access this value server-side, so I can check it?

+2  A: 

if you're talking of HTTP Basic Authorization, PHP store it credentials in the $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PASS']

Or you can use web-server config to check this password.

Col. Shrapnel