cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: zero bytes transfers and issue #382

From: Daniel Kahn Gillmor <dkg_at_fifthhorseman.net>
Date: Fri, 25 Sep 2015 01:52:46 -0400

On Thu 2015-08-20 18:14:07 -0400, Daniel Stenberg wrote:
> So, I'm a bit stuck in a tough place. The previous behavior surprised a set of
> users and so does the new. Further, I could possibly make non-2xx codes
> not store zero byte files, but should -o behavior really care about HTTP
> response codes and won't that just be even harder to explain and for users to
> figure out?

fwiw, i actually prefer the behavior described above -- store the
zero-byte file in the event of a 2xx HTTP return code, and do not store
it otherwise.

   --dkg
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-09-25