Origin commit data
------------------
Commit: 336e0f4c66
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-04-19 (Wed, 19 Apr 2017)
This commit is contained in:
vanhofen
2017-04-19 21:29:41 +02:00
16 changed files with 88 additions and 39 deletions

View File

@@ -123,6 +123,7 @@ std::string CPictureViewer::DownloadImage(std::string url)
curl_easy_setopt(ch, CURLOPT_URL, url.c_str());
curl_easy_setopt(ch, CURLOPT_CONNECTTIMEOUT, 3);
curl_easy_setopt(ch, CURLOPT_TIMEOUT, 4);
curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 0L);
CURLcode res = curl_easy_perform(ch);
if (res != CURLE_OK){
printf("[%s] curl_easy_perform() failed:%s\n",__func__, curl_easy_strerror(res));