cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: POSTing binary data doesn't work in 7.43.0

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 23 Jun 2015 03:05:10 +0200 (CEST)

On Mon, 22 Jun 2015, Stefan Bühler wrote:

> we use CURLOPT_POSTFIELDSIZE_LARGE and CURLOPT_POSTFIELDS to set the POST
> request body.
>
> With 7.43.0 it seems to ignore the size and to use strlen() instead (i.e. it
> cuts the body after the first null byte).
>
> I think
> https://github.com/bagder/curl/commit/ff7097f72c26a9d389f135f76cb28e10ca30f4c1
> ("urldata: store POST size in state.infilesize too") broke it.

Ouch, that's bad. Thanks for the report, I'll look into it!

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-06-23