cURL / Mailing Lists / curl-users / Single Mail

curl-users

time-cond with file

From: Kevin Murphy <murphy_at_genome.chop.edu>
Date: Fri, 4 Apr 2003 18:01:16 -0500

Hi,

I'm trying to figure out how to use the -z (--time-cond) option with a
filename argument, but it doesn't seem to be working right for me.

Each time I run the following command, curl downloads the file, but I
want it to not download the file unless it has changed:

curl -R -z UniSTS.aliases -O
ftp://ftp.ncbi.nlm.nih.gov/repository/UniSTS/UniSTS.aliases

The file on the server is dated Apr 1, 2003 at 10:16.

Downloading with -R creates a local file dated Apr 1, 2003 at 5:16,
which I guess means that the ftp server reports times in GMT, since I
am EST?

Anyway, no matter what timestamp I touch UniSTS.aliases with (days
earlier or later than the server's timestamp), the -z doesn't seem to
work: curl always downloads the file.

I'm using curl 7.2.4 on OS X 10.2.4; I used './configure
--disable-ldap; make; sudo make install' to install it.

Thanks,
Kevin

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
Received on 2003-04-05