cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Does the -Z option work when using FTP with cURL?

From: Mike Maynard <mmaynard_at_ddpnm.com>
Date: Thu, 21 Sep 2006 16:00:00 -0600

I have tried the -Z (uppercase) and it downloads the file every time. I
thought it was a time-stamp problem but that isn't it. I have not tried
-z (lowercase).
-Mike-

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Thursday, September 21, 2006 3:55 PM
To: curl-users_at_cool.haxx.se
Subject: Re: Does the -Z option work when using FTP with cURL?

On Thu, Sep 21, 2006 at 03:40:12PM -0600, Mike Maynard wrote:
> I have been using cURL for 2 years to automatically download a weekly
> file from an HTTPS server. I use the -Z option and cURL detects the
> new file and downloads the file. This has been working very well.
>
> 2 weeks ago the file was moved to an FTP server. According to the man

> pages, the -Z option only works with HTTP.

It looks like the code is actually there to support -z for FTP (although
the command used to obtain the file time may not be supported by all
server).
Have you tried it? The documentation probably needs to be updated.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address
service
          Let webmasters know that your web site has moved
Received on 2006-09-22