cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Command line/ local file time stamp

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 16 Dec 2002 11:27:25 +0100 (MET)

On Sun, 15 Dec 2002, Rudy Brown wrote:

> Can someone please tell me if there is a way to save a local copy of a page
> (using the command line "-o" or "-O" options) with the SAME date it has on
> the server?
>
> It appears all local copies have the date they were downloaded, and I have
> found nothing in the Curl manual giving me an option to retain the file
> date from the server.
>
> Am I missing something?

I think you're looking for this:

       -R/--remote-time
              When used, this will make libcurl attempt to figure
              out the timestamp of the remote file, and if that
              is available make the local file get that same
              timestamp.

              If this option is used twice, the second time dis-
              ables this again.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
Received on 2002-12-16