|
@@ -2,7 +2,8 @@
|
|
|
|
|
|
// Borrowed from https://curl.haxx.se/libcurl/c/getinmemory.html
|
|
|
|
|
|
-struct MemoryStruct { char *memory;
|
|
|
+struct MemoryStruct {
|
|
|
+ char *memory;
|
|
|
size_t size;
|
|
|
};
|
|
|
|
|
@@ -50,9 +51,9 @@ char *getData(char *url) {
|
|
|
field, so we provide one */
|
|
|
curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
|
|
|
|
|
|
- #ifdef WIN32
|
|
|
+#ifdef WIN32
|
|
|
curl_easy_setopt(curl_handle, CURLOPT_CAINFO, "cacert.pem");
|
|
|
- #endif
|
|
|
+#endif
|
|
|
|
|
|
/* get it! */
|
|
|
res = curl_easy_perform(curl_handle);
|