https://bugzilla.novell.com/show_bug.cgi?id=307098#c19
--- Comment #19 from Michal Marek
curl_easy_setopt(_curl, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE); curl_easy_setopt(_curl, CURLOPT_TIMEVALUE, timestamp);
where timestamp is either the timestamp stored in the last refresh or the timestamp of the last version stored in disk(if any) being the curl options that matches the correct friendly behaviuor suggested by both Peter and me.
Right, just one note in case it's not obvious: If you're going to use this feature, you need to defer opening of the local file to the first call of the CURLOPT_WRITEFUNCTION callback, otherwise you'd truncate it. curl_easy_getinfo(_curl, CURLINFO_RESPONSE_CODE, pointer_to_long) will then tell you the status code (200 if the file was downloaded, 304 if not). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.