SyntaxFix
Write A Post
Hire A Developer
Questions
$headers = array( 'Authorization: Basic '. base64_encode($username.':'.$password), ); ... curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);