cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Passing parameters to perform HTTP Post using libcurl- Curl

From: Shrestha, Anu <Anu.Shrestha_at_kaman.com>
Date: Wed, 05 Dec 2007 11:24:39 -0500

I was just sending an xml document to do HTTP post before. Now I have a
need to send additional parameter (property file) along with the xml
document. The host service is expecting two parameters. One property
file, second xmlstring

char* prop="";
prop="cybs_mas.properties";
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, prop); /* how do I send
this prop file along with the xmlstring * ???*/

//Post XML Document
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, xmlstring);

/* Send document to engine */
res = curl_easy_perform(curl);

Please help
Thank you
Received on 2007-12-05

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET