curl-users
Re: The end-range is out of the range of the file, but curl doesn't care it.
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 29 Apr 2015 07:59:01 +0200 (CEST)
Date: Wed, 29 Apr 2015 07:59:01 +0200 (CEST)
On Wed, 29 Apr 2015, Hongyi Zhao wrote:
> In the above case, the rquested range is completely out of the range.
> Why curl still return will 0?
Because HTTP errors are not (necessarily) curl errors. curl got the HTTP (you
asked for) just fine.
> While for a local file, curl will return 36 if the rquested range is
> completely out of the range, see the following:
A bit inconsistent but on the other hand I don't think all protocols are alike
so I'm not entirely sure this is bad.
Are you suggesting we should change any of this?
-- / daniel.haxx.se ------------------------------------------------------------------- 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.htmlReceived on 2015-04-29