Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

delphi-http-download

Test Delphi http(s) downloading using TNetHTTPClient or TIdHttp

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Simple tests of Delphi http(s) downloading

Done to test the underlying implementation of Castle Game Engine's TCastleDownload class on Delphi, that should be able to do asynchronous downloads of http / https.

Version 1: TNetHTTPClient

Test Delphi TNetHTTPClient ( https://docwiki.embarcadero.com/Libraries/Sydney/en/System.Net.HttpClientComponent.TNetHTTPClient , https://docwiki.embarcadero.com/RADStudio/Sydney/en/Using_an_HTTP_Client#Handling_Client-side_Certificates ).

Note that this doesn't require OpenSSL DLLs. It uses SSL libraries built into Windows. It uses winhttp.dll on Windows.

Version 2: TIdHttp (Indy)

Test Indy's TIdHttp.

This requires OpenSSL DLLs. They are distributed also in this repo, for convenience. But you should rather take the latest ones:

It uses socket access to perform HTTP(S) query. So it does more work in Pascal compared to TNetHTTPClient, TNetHTTPClient delegates more work to the Windows libraries.