Browse Source

Adjusted for windows

Piotr Czajkowski 6 years ago
parent
commit
334c2361e7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      curl.c

+ 4 - 0
curl.c

@@ -50,6 +50,10 @@ char *getData(char *url) {
 	   field, so we provide one */ 
 	curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
 
+	#ifdef WIN32
+	curl_easy_setopt(curl_handle, CURLOPT_CAINFO, "cacert.pem");
+	#endif
+
 	/* get it! */ 
 	res = curl_easy_perform(curl_handle);