Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Re: IdHTTP Component - Error when Calling Get Method for Https URL
| Subject: | Re: IdHTTP Component - Error when Calling Get Method for Https URL |
| Posted by: | "David Compton" (david.w.compt..@gmail.com) |
| Date: | Thu, 12 Oct 2006 10:02:04 +0000 (UTC) |
Here is my new "simplified" code - just in case that helps in answering my
latest query.
unit Main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IdHTTP, IdSSLOpenSSL;
type
TMainForm = class(TForm)
Button1: TButton;
MessagesMemo: TMemo;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MainForm: TMainForm;
implementation
{$R *.dfm}
procedure TMainForm.Button1Click(Sender: TObject);
var
https: TIdHTTP;
URL: string;
ReturnedPage: string;
SSLIOHandler: TIdSSLIOHandlerSocketOpenSSL;
begin
SSLIOHandler:= TIdSSLIOHandlerSocketOpenSSL.Create;
URL := 'http://www.google.com.au';
//URL := 'https://advisers.macquarie.com.au/security/login.html';
https := TIdHTTP.Create(nil);
try
https.IOHandler := SSLIOHandler;
ReturnedPage:= https.Get(URL);
MessagesMemo.Text := ReturnedPage;
finally
https.Free;
SSLIOHandler.Free;
end;
end;
end.
> Hello Remy,
>
> I'm making progress -thanks for your continued help.
>
> I have now downloaded the latest dll's and am using
> TIdSSLIOHandlerSocketOpenSSL.
> My code is a lot simpler now.
> However I'm getting an erro when I try to run the application:
>
> "Could not load SSL library"
>
> Is it enough to put the following 3 dll's in my application folder:
>
> libssl32.dll
> ssleay32.dll
> libeay32.dll
> Regards,
> David Compton
> mailto:david.w.compton@gmail.com
>> "David Compton" <david.w.compton@gmail.com> wrote in message
>> news:94596682348e8c8bb767c017ec4@newsgroups.borland.com...
>>
>>> I'm using Indy version 10.1.5 in Delphi 2006.
>>>
>>> I downloaded the dll's from http://www.intelicom.si/
>>> (indy_openssl096g), they are dated 13/08/2002.
>>>
>> Then you are using the wrong DLLs (and very outdated ones at that).
>> Indy 10.1.5 uses the official DLLs from http://www.openssl.org now.
>>
>>> Although I also have a later version of these dll's downloaded from
>>>
>> elsewhere
>>
>>> (indy-openssl-library-0.9.7j) dated 25/06/2006.
>>>
>> Those are still the wrong DLLs. Indy 10 no longer uses custom-built
>> DLLs anymore.
>>
>>> Also which unit do I find TIdSSLIOHandlerSocketOpenSSL in?
>>>
>> IdSSLOpenSSL
>>
>> Gambit