cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [cURLpp] retrieving the modify date/time from a file on an FTP server.

From: Eric Kneisel <fkneisel_at_teslaforecast.com>
Date: Wed, 5 Jul 2006 10:16:25 -0400

From: Jean-Philippe Barrette-LaPierre <jpb_at_rrette.com>
Date: 2006-07-05

On Wed, 2006-07-05 at 00:04 +0200, Daniel Stenberg wrote:
> On Mon, 3 Jul 2006, Eric Kneisel wrote:
>
> > My question I suppose is what function is it saying to pass the pointer
to a
> > long into. The easy_perform fuction doesn't seem to take a pointer to a
> > long, and downloads the file ontop of that.
>
> CURLINFO_FILETIME is passed to curl_easy_getinfo(). It takes a long
pointer as
> argument.
>
> CURLOPT_FILETIME is passed to curl_easy_setopt(). It takes a long as
argument.
>

If I understand correctly, you want to know the time BEFORE any
download?

That it is correct. I only want to download the new file if it is newer
than the local copy. The fist step in that is of course checking to see if
the remote file is newer.

Eric
Received on 2006-07-05