public function useBasicAuth($username=false, $password=false) {
        self::$useBasicAuth=($username!==false && $password!==false);
        self::$username=$username;
        self::$password=$password;
    }