Unit CastleHttps
Description
Add this unit to your uses clause to enable HTTPS support with TCastleDownload.
In some cases, TCastleDownload can actually support HTTPS out of the box, in which case including this unit is unnecessary but still harmless.
This unit is unnecessary when:
When we're using Delphi,
When we're using FPC + Android (since then Android's "download_urls" service is taking care of HTTPS, https://castle-engine.io/android_services ).
In other cases, we use FPC and FpHtpClient. Then this unit does something useful: we need to use FPC OpenSslSockets unit to enable HTTPS.
Moreover, with FPC 3.2.2 and Linux (or Unix, more generally) we need to use our custom CastleInternalForFpc32xOpenSslSockets unit, otherwise we get "Could not initialize OpenSSL library", as FPC is trying to access outdated OpenSSL version (not available in latest Linux distros).
Note: We do not use this unit by default, for the same reason that FpHttpClient doesn't do this by default. This may change in the future and then this unit will do nothing.
Uses
- OpenSslSockets
Generated by PasDoc 0.16.0-snapshot.