Unit CastleHttps

Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Constants
Variables

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:

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.