public function setAuth($username, $password)
    {
        $this->connectionOptions[CURLOPT_USERPWD] = $username . ':' . $password;
        $this->connectionOptions[CURLOPT_HTTPAUTH] = CURLAUTH_BASIC;
        return $this;
    }