curl-library
POST binary data content-type
Date: Wed, 9 Mar 2016 18:54:58 -0800
I'm doing a POST via a libcurl/curl_easy_perform(). The data is a zip file
of about 9M. Last night's try took overnight, then failed, so I'm using
the curl --libcurl option (and --verbose) to try to figure out how to
correct the options settings.
I noticed that using --data-binary the curl command is also very slow, and
the --verbose reveals
"Content-Type: application/x-www-form-urlencoded"
Shouldn't this be something like
"Content-Type: application/binary" ?
BTW, my code's slow POST was solved by setting HTTP_POSTFIELDSIZE_LARGE.
Dave
/dps
-- test signature -- please apply at front gate on Tuesdays only.
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-03-10