Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : Re: Indy 10 - another digest auth problem
| Subject: | Re: Indy 10 - another digest auth problem |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Mon, 8 Oct 2007 11:38:23 |
"Martin James" <nospam@tuthill.com> wrote in message
news:47072c9f@newsgroups.borland.com...
> TidAuthorizationDigest needs its 'Uri' property set so as to be
> able to correctly send the Authorization header. Unfortunately,
> it is created by a class factory using its class type
Only if you don't set the Request.Authentication property yourself
explicitially before sending the request to the server.
> There seems to be no event or other clean means of setting the 'Uri'
property.
Have you tried using the OnAuthorization event to update the Authentication
object after it is created?
procedure TForm1.IdHTTP1Authorization(Sender: TObject; Authentication:
TIdAuthentication; var Handled: Boolean);
begin
if Authentication is TIdDigestAuthentication then
begin
//...
Handled := True;
end;
end;
Gambit
none