cURL / Mailing Lists / curl-library / Single Mail



From: Don Mies (NIM) <>
Date: Mon, 12 Nov 2007 15:34:33 -0800

Thank you, that worked fine. I would never have come up with this by
reading the documentation so maybe someone should take a look at that
and find a way to make it clearer.

The man page for curl_easy_setopt under CURLOPT_FILETIME says:

    The curl_easy_getinfo(3) function with the CURLINFO_FILETIME
    can be used after a transfer to extract the received time (if any).

I interpreted that to mean that after I transferred a file from a web
server to the local machine, executing the above function would give me
the time that the file transfer occurred. It doesn't say anything about
it giving the last modification time of the file on the server.

Thanks again,

> -----Original Message-----
> From: [mailto:curl-library-
>] On Behalf Of Jeff Pohlmeyer
> Sent: Monday, November 12, 2007 2:52 PM
> To: libcurl development
> Subject: Re: Problem with CURLOPT_FILETIME
> I think you want something more like this:
> curl_easy_setopt(curl_handle, CURLOPT_FILETIME, 1 );
> curl_easy_perform(curl_handle);
> curl_easy_getinfo(curl_handle, CURLINFO_FILETIME,&fileTime );
> - Jeff
Received on 2007-11-13