curl-library
POSTing data using curl
From: Teresa Thomas <tere.ertw_at_gmail.com>
Date: Sun, 2 Jul 2006 02:44:45 -0400
Date: Sun, 2 Jul 2006 02:44:45 -0400
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
Received on 2006-07-02