curl-library
Re: Problem using RECORDFUNCTION
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 "https://website.net:443/Command?appId=XXX&appKey=YYY5&id=ZZZ" -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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-06-03