cURL / Mailing Lists / curl-library / Single Mail


RE: FTP SIZE Command

From: Michael Smith <mikes_at_test.VERTIGO.NET>
Date: Thu, 30 Sep 2004 13:57:20 -0400

Thanks for the reply.

This helpful but seems clumsy to have to parse the header for the result, however I will go with it for my initial work.

In addition to this is there anyway I can get a precise last write timestamp of a file on the FTP server.

Thanks again,

-----Original Message-----
[]On Behalf Of Daniel Stenberg
Sent: Thursday, September 30, 2004 12:55 PM
To: libcurl development
Subject: Re: FTP SIZE Command

On Thu, 30 Sep 2004, Michael Smith wrote:

> I would like to use libcurl to retrieve files from an ftp server. I want to
> be able to get the file size from the server first. Using CURLOPT_QUOTE, I
> am able to correctly request the size, but I am not able to actually get
> access to the buffer containing the size.
> How can I do this?

All FTP "replies" are passed on to the header function callback:

      Daniel Stenberg -- --
       Dedicated custom curl help for hire:
Received on 2004-09-30