cURL / Mailing Lists / curl-users / Single Mail

curl-users

status 22 for "not modified" file downloads

From: Stephen Welker <stephen.welker_at_nemostar.com.au>
Date: Mon, 15 Oct 2001 21:59:45 +1000

I may have discovered a problem with cURL v7.9 (& v7.7.1).

cURL appears to report incorrectly the status of a file download when the
file has NOT been modified since last download.

cURL invocation as follows...

curl --fail \
        --silent \
        --show-error \
        --max-time 180 \
        --time-cond $RECEIVE_FILE \
        --output $RECEIVE_FILE \
        $URL

$URL = http://www.nemostar.com.au/rss/nemostar.rss
$RECEIVE_FILE = nemostar.in

cURL has in its .curlrc file, to access the internet via a proxy (squid
v2.4STABLE2).

The first download of the file is successfull, but the following downloads
result in a return status:

 curl: (22) The requested file was not found

The squid logs indicate a status of 304 (Not Modified) for the failed
sessions.

BTW: this configuration work fine without the "--time-cond" parameter
previously.

Should cURL indicate some other return status other than 22?

-- 
Stephen.
Received on 2001-10-15