curl-library
RE: FTP SIZE Command
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,
Mike
-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se]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:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTHEADERFUNCTION
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-09-30