POSTing data using curl
2006-07-02 06:44:45 GMT
Hi,
I am a newbie to Unix and libcurl and need some help in using the library. I want to make an HTTP POST request with a header and content. The content is a plain text file which contains XML data.
I figure that I add the header using:
struct curl_slist *headers=NULL;
headers = curl_slist_append(headers, header); //header is char* type
Now, how can I set the content to be the XML file?
Do I have to use the curl_easy_setopt function? If so, what are the parameters?
Thanks in advance!
Teresa Thomas
RSS Feed