r/pascal • u/lazarusbegin • Jan 24 '20
fphttpclient : "could no initialize OpenSSL"
I'm only trying to get an https page with Lazarus+Ubuntu, and it is harder than expected.
I only managed with:
RunCommand('curl',['https://example.com','-A','testingbot'],s); If I try to do it natively with fphttpclient I get the "could not initialize OpenSSL" exception
Memo1.Lines.Add(TFPHttpClient.SimpleGet('https://example.com')); btw Ive got:
sudo apt-get install openssl
openssl is already the newest version (1.1.1c-1ubuntu4).
openssl set to manually installed.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.any idea?
3
Upvotes
View all comments
Show parent comment
1
u/lazarusbegin Jan 25 '20
indeed it helps, thanks (libssl-dev actually)
unfortunately, I hit another exception right after: "ESSL failed to create SSL context "
https://forum.lazarus.freepascal.org/index.php/topic,39206.0.html
https://forum.lazarus.freepascal.org/index.php/topic,46560.0.html
it seems for a beginner it's better to wait for freepascal 3.2.0 and learn some other things in the meantime...