curl-users
Re: zero bytes transfers and issue #382
Date: Tue, 29 Sep 2015 10:57:53 +0200
On Friday 25 September 2015 01:52:46 Daniel Kahn Gillmor wrote:
> 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
That is exactly the behavior you get with the --fail option, is not it?
If a script relies on empty body returned from server for each non-2xx HTTP
response code, it is broken anyway.
Kamil
-------------------------------------------------------------------
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-29