Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : Upgrade from 9 to 10 error
| Subject: | Upgrade from 9 to 10 error |
| Posted by: | "Bob Nudd" (bob.nu..@gmail.com) |
| Date: | Wed, 27 Sep 2006 12:40:38 |
I orignally had this code working for indy 9 :
procedure TfrmMain.idHTTP1SelectAuthorization(Sender: TObject;
var AuthenticationClass: TIdAuthenticationClass;
AuthInfo: TIdHeaderList);
begin
if (pos('Proxy-Authenticate: NTLM', idHTTP1.Response.RawHeaders.Text) >
0) then
begin
idHTTP1.ProxyParams.Clear;
idHTTP1.ProxyParams.BasicAuthentication := false;
AuthenticationClass := TIdSSPINTLMAuthentication;
end
else
begin
// Next check for Basic
if (pos('Proxy-Authenticate: Basic',idHTTP1.Response.RawHeaders.Text) >
0) then
begin
AuthenticationClass := TIdBasicAuthentication;
idHTTP1.ProxyParams.BasicAuthentication := true;
idHTTP1.ProxyParams.ProxyUsername:=proxyusername;
idHTTP1.ProxyParams.ProxyPassword:=proxypassword;
end
else
begin
// Then Digest
if (pos('Proxy-Authenticate:
Digest',idHTTP1.Response.RawHeaders.Text) > 0) then
AuthenticationClass := TIdDigestAuthentication;
end;
end;
end;
When i upgraded to v10 the line : AuthenticationClass :=
TIdSSPINTLMAuthentication; gives me a error: And i cannot find teh
replacement code for v10
Can anyone help?