2018-05-28
02:38 PM
- last edited on
2023-07-05
04:59 PM
by
Doreena Deng
curl_global_init(CURL_GLOBAL_ALL);
CURL *curl;
CURLcode res;
curl = curl_easy_init();
string urlString = "somesite";
if (curl) {
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_easy_setopt(curl, CURLOPT_URL, urlString.c_str());
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
res = curl_easy_perform(curl);
WriteReport("CURL IS %s", urlString.c_str());
WriteReport("CURL status is %i", res);
if (res != CURLE_OK)
fprintf(stderr, "curl_easy_perform() failed: %s\n",
curl_easy_strerror(res));
setProjectBuildups(userID);
curl_easy_cleanup(curl);
}
If I remove this code the plugin doesn't appear as outdated and it runs fine. I also notice that when I compile in VS2017 there is a libcurl.dll file in the build folder. Should I somehow include this .dll file in the add-ons folder ? Every help will be highly appreciated 2018-05-28 08:04 PM