1$auth = base64_encode($uname . ":" . $pass);
2curl_setopt($curl, CURLOPT_HTTPHEADER, array("Authorization: Basic $auth",
3 "Accept: application/json",
4 "Content-Type: application/json"));