How to create https client with synapse?

5.5k Views Asked by At

I need a https client used with synapse.

Do you have any demo about it?

Thank a lot.

2

There are 2 best solutions below

0
On

Have you tried example from Synapse How-To: Using Tcp With Ssl On Tcp Client ?

0
On
SynHttp := THTTPSend.Create;
SynHttp.Sock.CreateWithSSL(TSSLOpenSSL);
SynHttp.Sock.SSLDoConnect;
SynHttp.HTTPMethod('GET', 'https://www.google.com');
Memo1.Lines.LoadFromStream(SynHttp.Document);