cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Size of file on an ftp

From: Brock Noland <brockn_at_gmail.com>
Date: Wed, 16 Apr 2008 09:01:30 -0500

On Wed, Apr 16, 2008 at 8:43 AM, Raphael MOULIN
<raphael.moulin_at_gmail.com> wrote:
> How to get the size of a file on an FTP with a command line curl ?

$ curl --user noland -I ftp://bashcurescancer.com/php-5.2.5.tar.bz2
Enter host password for user 'noland':
Last-Modified: Thu, 08 Nov 2007 16:09:01 GMT
Content-Length: 7773024
Accept-ranges: bytes

Brock
Received on 2008-04-16