libcurl POSTFIELDS and POST body

Hello,
I need to create http POST request with POSTFIELDS and body. Something like
1
2
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, arg);
curl_easy_setopt(curl_handle, CURLOPT_READFUNCTION, read_data);

but as I have read here
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPOSTFIELDS
it looks it's not possible. Is there another way to achieve this?
It's not clear what you're trying to do. I suggest you read the tutorial.

http://curl.haxx.se/libcurl/c/libcurl-tutorial.html#HTTP
Topic archived. No new replies allowed.