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?
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?
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.