How to create https client with synapse?

5.4k 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 answers

0
Michał Niklas On

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

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