Sample code for 30+ languages & platforms
Unicode C

Example: Http.DownloadHash method

Demonstrates the DownloadHash method.

Chilkat Unicode C Downloads

Unicode C
#include <C_CkHttpW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    const wchar_t *url;
    const wchar_t *encodedHash;

    http = CkHttpW_Create();

    url = L"https://chilkatdownload.com/11.1.0/chilkat2-python-3.13-x64.zip";
    encodedHash = CkHttpW_downloadHash(http,url,L"sha256",L"hex_lower");
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        return;
    }

    //  Expected value: 32583182374888c7761e7c15b998fd1d326c439c704d59380d34599f4be9b63a
    wprintf(L"sha256 = %s\n",encodedHash);


    CkHttpW_Dispose(http);

    }