33 const char* productVersion) {
38 curl = curl_easy_init();
42 requestURL.append(
"?product=");
43 requestURL.append(productName);
48 curl_easy_setopt(curl, CURLOPT_URL, requestURL.c_str());
50 curl_easy_setopt(curl, CURLOPT_WRITEDATA, &response);
53 result = curl_easy_perform(curl);
54 curl_easy_cleanup(curl);
56 return (productVersion == response);