Download JSon from secure sites lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- lainz · 2018-03-23 17:00 Hi, a site like this one https://jsonplaceholder.typicode.com/users Can't be downloaded with this code Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  client: TFPHTTPClient;begin  try    client := TFPHttpClient.Create(nil);    client.AddHeader('Accept', 'application/json');    client.Get('https://jsonplaceholder.typicode.com/users');  finally    client.Free;  end; I already have ssleay and libeay in the binary folder. I'm on Windows. I get: Connect to "siteurl":443 failed ---------------------------------------------------------------------- Phil · 2018-03-23 17:58 Quote from: lainz on March 23, 2018, 06:00:13 pmI get: Connect to "siteurl":443 failed Your OpenSSL libs are probably too old. The first thing I do with a problem site is analyze it here: https://www.ssllabs.com/ It simulates calls from various browsers, etc. I see that your server fails with version 0.9.8y of OpenSSL. That's probably what you're using. ---------------------------------------------------------------------- lainz · 2018-03-23 18:02 Quote from: Phil on March 23, 2018, 06:58:21 pmQuote from: lainz on March 23, 2018, 06:00:13 pmI get: Connect to "siteurl":443 failed Your OpenSSL libs are probably too old. The first thing I do with a problem site is analyze it here: https://www.ssllabs.com/ It simulates calls from various browsers, etc. I see that your server fails with version 0.9.8y of OpenSSL. That's probably what you're using. You're right. I replaced the SSL library I was using to the one that uses Lazarus (for Online Package Manager) and works fine. ---------------------------------------------------------------------- Phil · 2018-03-23 18:04 Quote from: lainz on March 23, 2018, 07:02:53 pmYou're right. I replaced the SSL library I was using to the one that uses Lazarus (for Online Package Manager) and works fine. Forgot to mention. You can get up to date libs zipped here: http://indy.fulgan.com/SSL ---------------------------------------------------------------------- lainz · 2018-03-23 18:05 Many thanks. I will download from there.