When I compile the following code with Windows as target, it loads the site fine, compiling it for OSX 10.12.x, Indy return a Socket Error # 54. On OSX 10.13 High Sierra, the same code works fine.
After days of trying, I just cant figure it out.
Does anybody has any clue for me?
I am using Delphi 10.2 Tokyo.
id:=TIdHTTP.Create(nil);
ssl:=TIdSSLIOHandlerSocketOpenSSL.Create(id);
id.IOHandler:=ssl;
id.HTTPOptions:=[hoWantProtocolErrorContent,hoNoProtocolErrorException];
id.RedirectMaximum:=5;
id.ReadTimeout:=30000;
id.HandleRedirects:=true;
ssl.SSLOptions.SSLVersions:=[sslvTLSv1,sslvTLSv1_1,sslvTLSv1_2,sslvSSLv2,sslvSSLv23,sslvSSLv3];
s:=id.Get(‘https://www.fleurtygirl.net/’);
ssl.Free;
id.free;