How it works...

Open the project in Chapter06\CODE\RECIPE11\XPlatNativeHTTPClient.dproj. The main form is similar to the following:

Figure 6.27: The cross-platform HTTPS client running on Windows 10

The two upper buttons send a request to the Apache HTTPS service developed in the previous recipe, while the third button sends a GET request to the GitHub API to get information about the username written in the edit. While the GitHub HTTPS contains a valid certificate provided by a recognized certification authority, the local service uses a self-signed certificate.

All the HTTPS requests are executed by a data module that contains an instance ...

Get Delphi Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.