On Mon, 19 Aug 2013, Mellberg, Bo wrote:

0115: Transfer-Encoding: chunked

...

0000: 17a5

The xml-file is 6053 bytes, and as you can see curl has added a line “0000: 17a5”. How can I make curl NOT adding this line?

It adds the size of the first chunk (in hex) since it is doing a chunked-encoded transfer. As you can see in the headers! Make sure you know the size of the post beforehand and tell libcurl so that chunked encoding can be avoided.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to