Article View: borland.public.cppbuilder.internet.socket
Article #338Re: C++ Builder 2007 & Indy10 + Digest auth...
From: Remy Lebeau (TeamB)
Date: Tue, 15 Apr 2008 22:44
Date: Tue, 15 Apr 2008 22:44
28 lines
2552 bytes
2552 bytes
"Jyrki Saario" <user@domain.invalid> wrote in message news:48052dfb$1@newsgroups.borland.com... > OK. Any ideas how to get access to TIdDigestAuthentication > instance from SelectAuthorization event (to set the uri)? Sorry, my mistake. You cannot do it from that event. Only from the OnAuthorization event. OnSelectAuthorization is fired when TIdHTTP needs you to decide which TIdAuthentication class it should use, and then it creates an instance after the OnSelectAuthorization event handler exits. If you know that Digest will always be used, you can assign the TIdHTTP.Request.Authentication property yourself before calling Get(). Then you will have access to the TIdDigestAuthentication object (since you have to provide one yourself). > Seems that OnAuthorization event does not trigger > at all, any explanations why? Apparently TIdDigestAuthentication needs some work. It does not seem to be implemented very well. Try setting the TIdHTTP.Request.Username property to an empty string before calling Get(). That should force the OnAuthorization event to fire. Gambit
Technical Details
Message-ID:
<48052fd6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.albasani.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<48035008@newsgroups.borland.com> <480388e6$1@newsgroups.borland.com> <480396b8$1@newsgroups.borland.com> <4803a6db@newsgroups.borland.com> <4803ac9f$1@newsgroups.borland.com> <4803b372@newsgroups.borland.com> <4803c9ba$1@newsgroups.borland.com> <4803dd91$1@newsgroups.borland.com> <48047653@newsgroups.borland.com> <4804db8f$1@newsgroups.borland.com> <4804eef3$1@newsgroups.borland.com> <4804f4ba@newsgroups.borland.com> <480504a7$1@newsgroups.borland.com> <480506b7$1@newsgroups.borland.com> <48052dfb$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d2c1cbe3fa01c X-Google-Attributes: gid11508e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <48035008@newsgroups.borland.com> <480388e6$1@newsgroups.borland.com> <480396b8$1@newsgroups.borland.com> <4803a6db@newsgroups.borland.com> <4803ac9f$1@newsgroups.borland.com> <4803b372@newsgroups.borland.com> <4803c9ba$1@newsgroups.borland.com> <4803dd91$1@newsgroups.borland.com> <48047653@newsgroups.borland.com> <4804db8f$1@newsgroups.borland.com> <4804eef3$1@newsgroups.borland.com> <4804f4ba@newsgroups.borland.com> <480504a7$1@newsgroups.borland.com> <480506b7$1@newsgroups.borland.com> <48052dfb$1@newsgroups.borland.com> Subject: Re: C++ Builder 2007 & Indy10 + Digest auth... Date: Tue, 15 Apr 2008 15:44:37 -0700 Lines: 30 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <48052fd6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1208299478 207.178.157.90 (15 Apr 2008 15:44:38 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.albasani.net!news.isoc.lu!newsgroups.borland.com!not-for-mail