curl-library
Re: FTP SIZE Command
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 30 Sep 2004 18:54:59 +0200 (CEST)
Date: Thu, 30 Sep 2004 18:54:59 +0200 (CEST)
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