public function setCredentials(string $username, string $password)
    {
        $userpwd = $username . ':' . $password;
        curl_setopt($this->curl, CURLOPT_USERPWD, $userpwd);
    }
public function setCredentials(string $username, string $password)
    {
        $userpwd = $username . ':' . $password;
        curl_setopt($this->curl, CURLOPT_USERPWD, $userpwd);
    }
public function setCredentials ( string $ username , string $ password ) { $ userpwd = $ username . ':' . $ password ; curl_setopt ( $ this -> curl , CURLOPT_USERPWD , $ userpwd ) ; }
set the credentials used for HTTP authentication
@param string $username
@param string $password
set the credentials used for HTTP authentication