Hi, 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. Thanks. -Jon On Jun 2, 2014, at 6:11 PM, Daniel Stenberg <[email protected]> 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] = > http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-26#section-4.1 > > -- > > / daniel.haxx.se > ------------------------------------------------------------------- > List admin: http://cool.haxx.se/list/listinfo/curl-library > Etiquette: http://curl.haxx.se/mail/etiquette.html
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
