SyntaxFix
Write A Post
Hire A Developer
Questions
Can you try this,
$ch = curl_init($url); ... curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password); ...
REF: http://php.net/manual/en/function.curl-setopt.php