Sample code for 30+ languages & platforms
Delphi DLL

Example: Http.DownloadHash method

Demonstrates the DownloadHash method.

Chilkat Delphi DLL Downloads

Delphi DLL
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Http;

...

procedure TForm1.Button1Click(Sender: TObject);
var
http: HCkHttp;
url: PWideChar;
encodedHash: PWideChar;

begin
http := CkHttp_Create();

url := 'https://chilkatdownload.com/11.1.0/chilkat2-python-3.13-x64.zip';
encodedHash := CkHttp__downloadHash(http,url,'sha256','hex_lower');
if (CkHttp_getLastMethodSuccess(http) = False) then
  begin
    Memo1.Lines.Add(CkHttp__lastErrorText(http));
    Exit;
  end;

// Expected value: 32583182374888c7761e7c15b998fd1d326c439c704d59380d34599f4be9b63a
Memo1.Lines.Add('sha256 = ' + encodedHash);

CkHttp_Dispose(http);

end;