cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-784928 ] --time-cond/-z doesn't seem to work

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 07 Aug 2003 11:31:47 -0700

Bugs item #784928, was opened at 2003-08-07 20:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=784928&group_id=976

Category: http
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Piotr Hosowicz (lodzislaw)
Assigned to: Daniel Stenberg (bagder)
Summary: --time-cond/-z doesn't seem to work

Initial Comment:
1. I wanted to use curl to update my virus database via
HTTP. The file was not downloaded yet, I called (just
a test run) :

curl -R -z '1999-12-12 12:00:00' -o file.tgz --url
http://remote.host.net/path/file.tgz

It went OK and downloaded the file. Then I wanted to
cause it to cease to download and issued :

# 2003-08-07 CEST is current date

curl -R -z '2003-09-01 12:00:00' -o file.tgz --url
http://remote.host.net/path/file.tgz

Despite the -z switch it begun to download the file.

The server file headers (HEAD) are :

HTTP/1.1 200 OK
Date: Thu, 07 Aug 2003 18:10:41 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2
Last-Modified: Fri, 08 Nov 2002 15:29:37 GMT
ETag: "6abd9-15eee9-3dcbd861"
Accept-Ranges: bytes
Content-Length: 1437417
Content-Type: application/x-tar
Content-Encoding: x-gzip

2. The second thing is that I would be gratefull if the
-z option without any time condition would act, as if
the time condition was the already existent file's
modification timestamp.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=784928&group_id=976

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-07