cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: POSTing adds size of chunk before actual data

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 19 Aug 2013 08:45:51 +0200 (CEST)

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
Received on 2013-08-19