rendered paste body //s
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, BaseUrl);
curl_easy_setopt(curl, CURLOPT_USERAGENT, "libcurl-agent/1.0");
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &config);
res = curl_easy_perform(curl);
printf("Received XML from enomalism: %s", config);
/* always cleanup */
curl_easy_cleanup(curl);
}
else
{
printf("\t Can't initialize curl library ...\n");
}
//e
size_t write_data(void *buffer, size_t size, size_t nmemb, void *userp)
{
// printf("param 1: %s", buffer);
//printf("param 2: %s", size);
//printf("param 3: %s", nmemb);
//
// printf("param 4: %s", userp);
}