cURL / Mailing Lists / curl-users / Single Mail

curl-users

The end-range is out of the range of the file, but curl doesn't care it.

From: Hongyi Zhao <hongyi.zhao_at_gmail.com>
Date: Tue, 28 Apr 2015 14:34:10 +0800

Hi all,

See the following testings:

$ echo hello world > fnord
$ curl -r 5-200 file://$PWD/fnord
 world
$ echo $?
0

As you can see, the end-range is out of the range of the file, but curl
still treat is as the successfully execution.

Any hints?

Regards

-- 
Hongyi Zhao <hongyi.zhao_at_gmail.com>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493
-------------------------------------------------------------------
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-04-28