darkagn 315 Veteran Poster Featured Poster

Hi all,

I am having an issue with regard to libeay32.dll as outlined in this thread. I am getting the error when attempting to connect via HTTPS using the following code:

function THttpClient.Login(const UserName, Password, URL: String): Boolean;
var
  Client: TIdHTTP;
  Params: TStrings;
begin
  Client := TIdHTTP.Create(Nil);
  Client.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(Nil);
  Params := TStringList.Create as TStrings;
  try
    Params.Add(Format('username=%s', [UserName]));
    Params.Add(Format('password=%s', [Password]));
    Response := Client.Post(URL, Params);
    Result := Client.ResponseCode = 200;
  finally
    Client.Free;
    Params.Free;
  end;
end;

As you can see I am using Indy components for the HTTP client and SSL IOHandler. We have the latest version of Indy installed from their SVN repository. My problem seems to be that I can't find a compatible libeay32.dll and ssleay32.dll for OpenSSL for this version of Indy on my Win7 x64 machine, although a colleague can run the code using OpenSSL 0.9.8i (fairly old version) on his WinXP x86 machine.

Does anyone have any thoughts as to how I might be able to fix my issue?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.