CURL *curl;
CURLcode res;
curl_global_init(CURL_GLOBAL_DEFAULT);
curl = curl_easy_init();
if (curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://" + ip +"/growtopia/server_data.php");
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); // Bypass SSL verification (insecure)
curl_easy_setopt(curl, CURLOPT_POST, 1L);
res = curl_easy_perform(curl);
if (res != CURLE_OK)
std::cerr << "Curl error: " << curl_easy_strerror(res) << std::endl;
curl_easy_cleanup(curl);
}
curl_global_cleanup();
system("PAUSE");