Probably using
KeepConnection should be enough:
But if you want to have more control, provide your own ssl handler. To disable the verification of the certificate for instance:
uses ... openssl, fphttpclient, opensslsockets, sslsockets;
type
TExOpenSSLSocketHandler=class(TOpenSSLSocketHandler)
public
constructor Create;override;
end;
constructor TExOpenSSLSocketHandler.Create;
begin
inherited Create;
VerifyPeerCert:=False;
end;
And set it as the default handler. Assuming you understand what that means:
var
c:TFPHTTPClient;
begin
InitSSLInterface;
TSSLSocketHandler.SetDefaultHandlerClass(TExOpenSSLSocketHandler);
c:=TFPHTTPClient.Create(nil);
c.KeepConnection:=True;
...
I did not test the above code. It is just to give you the idea.