We are trying to use curl in PHP5 to login to a website using basic authentication.
Partial code is like this:
... $uname = \"username\"; $pass
It looks like there is no documented solution, but you could try this workaround:
curl_setopt($ch, CURLOPT_URL, "http://{$uname}:{$pass}@www.test.com/login.php");
But i have not tested it..