Re: Using TIdhttp and Digest Authentication

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

"Gregoire" <gregoi…@gedesoft.de> wrote in message
news:FC14641AB263E340gregoi…@gedesoft.de...

> 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)

Replies

None

In response to

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