cURL / Mailing Lists / curl-library / Single Mail


Re: Problem using RECORDFUNCTION

From: Dan Fandrich <>
Date: Tue, 3 Jun 2014 00:59:41 +0200

On Mon, Jun 02, 2014 at 06:42:42PM -0400, Jon Lederman wrote:
> 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.

libcurl doesn't do any data conversion for HTTP transfers. If you want to send
binary data, just pass in binary data from the read callback!

>>> Dan
List admin:
Received on 2014-06-03