Re: Proxy Digest authentication

Giganews Newsgroups
Subject: Re: Proxy Digest authentication
Posted by:  Remy Lebeau (Indy Team) (no.spam@no.spam.com)
Date: Tue, 3 Jul 2007

"Majky" <majky…@centrum.sk> wrote in message
news:5A8E5698522CE340majky…@centrum.sk...

> 1, there's a bug in the DoNext() function on line:
>            FQopOptions.CommaText := Params.Values['qop'];
>    I believe it should be:
>        FQopOptions.CommaText := LParams.Values['qop'];

Fixed

> 2, Method and URI properties are not used/implemented.

They are used, but they are specific to TIdAuthenticationDigest only
so TIdHTTP cannot assign them in a generic manner automatically.  You
can use the OnProxyAuthorization and OnAuthorization events to set it
manually in your own code, though.  For example (untested):

    procedure TForm1.IdHTTP1Authorization(Sender: TObject;
Authentication: TIdAuthentication; var Handled: Boolean);
    begin
        if Authentication is TIdAuthenticationDigest then
        begin
            with Authentication as TIdAuthenticationDigest do
            begin
                Method := IdHTTP1.Request.Method;
                Uri := IdHTTP1.Request.URL;
            end;
        end;
        Handled := True;
    end;

Gambit

Replies

In response to

Proxy Digest authentication posted by Majky on Tue, 3 Jul 2007