Unicode C++
Unicode C++
Require that the Web Server's SSL Certificate is Non-Expired and the Signature is Valid
Demonstrates setting the RequireSslCertVerify property to require that the web server's SSL/TLS certificate is non-expired and that the certificate's signature is valid.Chilkat Unicode C++ Downloads
#include <CkHttpW.h>
void ChilkatSample(void)
{
// This example assumes the Chilkat HTTP API to have been previously unlocked.
// See Global Unlock Sample for sample code.
const wchar_t *url = L"https://chilkatsoft.com";
CkHttpW http;
http.put_RequireSslCertVerify(true);
const wchar_t *html = http.quickGetStr(url);
if (http.get_LastMethodSuccess() != true) {
wprintf(L"%s\n",http.lastErrorText());
return;
}
wprintf(L"Success.\n");
}