Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Https post and xml file

From: Shrestha, Anupama <>
Date: Tue, 20 Jun 2006 08:38:43 -0400

> Do I have to do multipart forms to post an xml file? or Can I do with simple easy commands to post a xml file. I don't have multipart form, just one xml.
> Can I open a xml file, read a xml file and https post that xml file?
> Any examples?
> curl_easy_setopt(curl, CURLOPT_URL, url);
> curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
> curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, "PEM");
> curl_easy_setopt(curl, CURLOPT_SSLCERT, pCertFile);
> ....
> ....
> curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, write_cb);
> curl_easy_setopt (curl, CURLOPT_WRITEDATA, memory);
> curl_easy_setopt(curl, CURLOPT_POSTFIELDS, samplexml); => samplexml is just a hard coded xml strings. Instead of this I want to pass the xml file.
> Thank you
Received on 2006-06-20

These mail archives are generated by hypermail.

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

File upload with ASP.NET