cURL / Mailing Lists / curl-library / Single Mail


Re: Problem using RECORDFUNCTION

From: Jon Lederman <>
Date: Mon, 2 Jun 2014 18:42:42 -0400


I want chunked encoding but with binary as per the following command line curl command:

curl "" -H "Content-Type: AAA;codec=BBB" -H "Accept-Language: ENUS" -H "Transfer-Encoding: chunked" -H "Accept: application/xml" -H "Accept-Topic: New" -k --data-binary @data.bin -v

How can I achieve the same thing with libcurl. The documentation is not clear on this. Any help would be greatly appreciated.


On Jun 2, 2014, at 6:11 PM, Daniel Stenberg <> wrote:

> On Mon, 2 Jun 2014, Jon Lederman wrote:
> Please consider stopping the top-posting.
>> I want to send each chunk as binary not ascii in the post. Is there an option I need to set using CURLOPT to do this?
> You asked for HTTP chunked encoding[1], and that is what you got. If you want the data to be sent differently, then I suggest you don't do chunked encoding and instead send back the data exactly as you want it to get sent.
> [1] =
> --
> /
> -------------------------------------------------------------------
> List admin:
> Etiquette:

List admin:
Received on 2014-06-03