Unicode C++
Unicode C++
Example: Http.DownloadHash method
Demonstrates theDownloadHash method.
Chilkat Unicode C++ Downloads
#include <CkHttpW.h>
void ChilkatSample(void)
{
CkHttpW http;
const wchar_t *url = L"https://chilkatdownload.com/11.1.0/chilkat2-python-3.13-x64.zip";
const wchar_t *encodedHash = http.downloadHash(url,L"sha256",L"hex_lower");
if (http.get_LastMethodSuccess() == false) {
wprintf(L"%s\n",http.lastErrorText());
return;
}
// Expected value: 32583182374888c7761e7c15b998fd1d326c439c704d59380d34599f4be9b63a
wprintf(L"sha256 = %s\n",encodedHash);
}