cURL / Mailing Lists / curl-library / Single Mail

curl-library

Binary file post in C

From: Dragomir Nikolov <dragonikolov_at_yahoo.com>
Date: Mon, 22 Feb 2010 01:59:44 -0800 (PST)

I need a libCurl C example
for HTTP POST of a binary file (in Windows). The following curl
example does exactly what I need, but I have to embed it within a C
program:
curl -k --data-binary
@myfile.xml -H "Content-Type: text/xml" https://localhost:4445/test
Please, note that there
are no other input parameters like “filename” that I have to
submit.
Thank you in advance,
                Drago

      
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-22