Re: Using TIdhttp and Digest Authentication

Giganews Newsgroups
Subject: Re: Using TIdhttp and Digest Authentication
Posted by:  Remy Lebeau \(TeamB\) (
Date: Thu, 18 Sep 2008

"Gregoire" <gregoi…> wrote in message

> The error is:
> Cannot create instance of abstract class "TIdDigestAuthentication"
> because '_fastcall TIdAuthentication::KeepAlive() = 0'

That bug was fixed in Indy 10.

> Wondering why this work:
> IdHTTP1->Request->Authentication = TIdBasicAuthentication();

Because TIdBasicAuthentication overrides KeepAlive(), whereas
TIdDigestAuthentication is not.

> Is the following line mandatory or does Indy automatically select
> the right authentication method?

In general, it does.  When the server replies, TIdHTTP compares it with the
registered authentication lasses to see which one can handle the reply.

Remy Lebeau (TeamB)



In response to

Using TIdhttp and Digest Authentication posted by Gregoire on Thu, 18 Sep 2008