cURL / Mailing Lists / curl-library / Single Mail

curl-library

Detecting If-Modified-Since failure

From: Ben Martin <monkeyiq_at_users.sourceforge.net>
Date: Wed, 27 Nov 2002 20:54:29 +1000

Hi,
  Just a quick check, when one does
curl_easy_setopt( c, CURLOPT_TIMECONDITION, TIMECOND_IFMODSINCE );
curl_easy_setopt( c, CURLOPT_TIMEVALUE, mtime );
perform();

is the recommended way to test if the file has been changed and thus
downloaded to test the HTTP code CURLINFO_EFFECTIVE_URL ?

Thanks.

-- 
-----------------------------------------------------
In this world there are only two tragedies.  
One is not getting what one wants, 
and the other is getting it.
                -- Oscar Wilde
http://witme.sourceforge.net/libferris.web/
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Received on 2002-11-27