cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re[2]: Synonym of --data-binary

From: Alexander Levshin <aleks.levshin_at_gmail.com>
Date: Sat, 3 Jan 2009 12:15:07 +0300

Saturday, January 3, 2009, 11:00:17 AM, William wrote:

>
I don't know if your a troll or not, but wtf are you talking about.

Hm....Let me explain. In old times I used the curl.exe in my project, it was
started as distinct process and everyone was happy. But now I must rewrite
my code using libcurl.NET and here is where problem comes.

Old startup prompt for curl.exe:
curl.exe --cacert cacert.pem --cert-type PEM --cert client.pem --cert-type
PEM -k -b cookie --data-binary "@myfile" -H "User-Agent:Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR
3.0.04506.648; .NET CLR 3.5.21022)" -H "Accept-Encoding:gzip,deflate" -H
"ajax-session: 0" -H "ajax-method: SubmitRequest" https://myurl -L -v -o

I try to figure out how to code --data-binary option using lubcurl.NET API.
I have found in the libcurl-tutorial an example how to post binary data with
POSTFIELDS/POSTFIELDSIZE keywords, but without success. I suggest maybe the
content-type should be changed...

-- 
Regards Alex Levshin
Received on 2009-01-03