add Http::verify_ssl(bool verify) method

This commit is contained in:
2022-08-25 05:16:23 +02:00
parent c730b85629
commit b1441366f4
2 changed files with 15 additions and 0 deletions

View File

@@ -151,6 +151,12 @@ public:
*/
void allow_redirects(bool allow_redirects);
/*
* verify the peer's SSL certificate
* default is true
*/
void verify_ssl(bool verify);
bool get(const wchar_t * url, std::wstring & out, bool clear_str = true);
bool get(const std::wstring & url, std::wstring & out, bool clear_str = true);
bool get(const pt::WTextStream & url, std::wstring & out, bool clear_str = true);
@@ -189,6 +195,7 @@ private:
long debug_mode;
pt::Space * debug_info;
bool follow_location;
bool verify_ssl_cert;
std::wstring temp_header;
std::string temp_header_ascii;