cURL / Mailing Lists / curl-users / Single Mail

curl-users

Wrong size of a file when downloading

From: JAIME DURAN RODRIGUEZ <jaimed_at_tid.es>
Date: Tue, 23 Jun 2009 15:42:22 +0200

Hello all

I'm getting a strange curl behavior when downloading a file from a server.

- First I list a dir:
> curl ftps://user:password_at_server:port/path/ -k
...
-rwxr-xr-x 1 user iFS 77824 Jun 23 13:54 file.tar

look at the file size; 77824 bytes

- I try to get the file, with the following result:
> curl ftps://user:password_at_server:port/path/file.tar -k -O
...
> SIZE file.tar
< 213 77,824 bytes.
...
* Getting file with size: 77
...

The SIZE command returns 77,824 bytes. That comma makes curl to interpret the size as a number with decimals, so I'm getting 77 bytes of the file :(
I have searched through the archives and didn't see anything similar. What could be the problem?

Thanks in advance

Regards,
Jaime

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-06-23