#34545 [Opn->Bgs]: TIMECOND_IFMODSINCE not implemented for many years???

From: Date: Mon, 19 Sep 2005 06:27:56 +0000
Subject: #34545 [Opn->Bgs]: TIMECOND_IFMODSINCE not implemented for many years???
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85222@lists.php.net to get a copy of this message
ID: 34545 Updated by: sniper@php.net Reported By: mshonich at yandex dot ru -Status: Open +Status: Bogus Bug Type: cURL related Operating System: any PHP Version: 4.4.0 New Comment: I don't know what version you actually have tried, but CURL_TIMECOND_IFMODSINCE has existed since 4.3.9.. Previous Comments: ------------------------------------------------------------------------ [2005-09-19 01:28:45] mshonich at yandex dot ru Description: ------------ Docs `bout curl_setopt notice the CURLOPT_TIMECOND and CURLOPT_TIMEVALUE options. Specifically: <i>CURLOPT_TIMEVALUE: Pass a long as a parameter that is the time in seconds since January 1st, 1970. The time will be used as specified by the CURLOPT_TIMEVALUE option, or by default the TIMECOND_IFMODSINCE will be used. </i> First of all, documentation is confusing: IMHO it should be read <i>The time will be used as specified by the CURLOPT_TIMECOND option, or by default the TIMECOND_IFMODSINCE will be used. </i> Second, it is completely wrong: If you only specify CURLOPT_TIMEVALUE without CURLOPT_TIMECOND, then nothing will happen - If-Modified-Since header won't be send. Thus default behaviour is not TIMECOND_IFMODSINCE. Next big thing about this bug is that TIMECOND_IFMODSINCE was never defined for astonishing high number of major releases. One can use curl_setopt(CURLOPT_TIMECOND, 1) as a workaround, but it is darn unconvient. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34545&edit=1

« previous php.bugs (#85222) next »