Synapse https 500 lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- big_M · 2019-11-29 16:28 Hi. I installed synapse (as lpk), put ssleay32.dll and libeay32.dll (from here https://indy.fulgan.com/SSL/) in the project folder, and added httpsend and openssl to the uses clause, yet my simple test (from wiki) always fails with error 500 when using a https url (http works just fine). Now, I am new to http requests, so I don't know if that is related to SSL or my request. 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 function DownloadHTTP(URL, TargetFile: string): Boolean;var  HTTPGetResult: Boolean;  HTTPSender: THTTPSend;begin  Result := False;  HTTPSender := THTTPSend.Create;  try    HTTPGetResult := HTTPSender.HTTPMethod('GET', URL);    showMessage(inttostr(HTTPSender.ResultCode));    if (HTTPSender.ResultCode >= 100) and (HTTPSender.ResultCode<=299) then begin      HTTPSender.Document.SaveToFile(TargetFile);      Result := True;    end;  finally    HTTPSender.Free;  end;end; procedure TForm2.Button1Click(Sender: TObject);begin  DownloadHTTP('https://www. phoronix.com/phxcms7-css/phoronix.png','E:\phoronix.png');end;   What am I missing? (Laz 2.0.6, fpc 3.0.4) ---------------------------------------------------------------------- lainz · 2020-01-20 14:43 I get the same error 500. I think we don't need to add openssl unit from FPC sources, since synapse has it's own OpenSSL units in the folder. ssl_openssl.pas, but is not accessible from the package (at least the installed with OPM). Any ideas on how to fix? ---------------------------------------------------------------------- rvk · 2020-01-20 14:54 First thing I always do when installing the synapse package is add ssl_openssl to it. Somehow it's left out. So just open the synapse package, add ssl_openssl (in the same directory) and compile and save. After that you can add ssl_openssl to your own unit in the uses and it will be found. ---------------------------------------------------------------------- lainz · 2020-01-20 15:02 Quote from: rvk on January 20, 2020, 03:54:16 pmFirst thing I always do when installing the synapse package is add ssl_openssl to it. Somehow it's left out. So just open the synapse package, add ssl_openssl (in the same directory) and compile and save. After that you can add ssl_openssl to your own unit in the uses and it will be found. Thankyou, it works now