hello, im learning to use libcurl post method, and i need some help...
Code:
#include <stdio.h>
#include <curl/curl.h>
int main(void){
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "localhost/config.php");
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "$POST[in_chkcacic] => test1");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
return 0;
}
Can i use the bold parameter like this? I want to test sending a post to myself and that config.php was made to receive the post and write a return XML file...