cURL / Mailing Lists / curl-users / Single Mail

curl-users

The curl --range option and the unix/win format of files.

From: Hongyi Zhao <hongyi.zhao_at_gmail.com>
Date: Mon, 6 Apr 2015 18:09:11 +0800

Hi all,

It is well known that the unix and windows/dos have the different line
feeds. Which will also give the different count on the file's magnitude.

So, my issue is:

When we use the following command to invoke curl:

curl -r 0-499 /path/to/url

In the above command, would the curl use the unix file format or the win/
dos format of line feeds to count the bytes for downloading?

If this count is based on the server's side, does this mean the curl will
leave it as the original unix or win/dos formats as they are regardless
what the client sides filesystems and OSs are?

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-06