cURL / Mailing Lists / curl-library / Single Mail

curl-library

Not getting a 304 response condition for CURLOPT_TIMECONDITION?

From: Tony Metters <tony_metters_at_hotmail.com>
Date: Wed, 22 Feb 2006 13:09:39 +0000

Hi

running the following code. But I do not get a response code 304.

curl_easy_setopt(_curl, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE);
curl_easy_setopt(_curl, CURLOPT_TIMEVALUE, timestamp);
curl_easy_perform(_curl);
curl_easy_getinfo(_curl, CURLINFO_RESPONSE_CODE, &code);

running in verbose mode I can see the header message 'document not new
enough' but I do
not get the response code 304. I appear to get the response code of the
previous 'MTDM filename' command which is 213?

Is it libcurls responsibilty to pass the 304 or does it simpley 'pass thru'
the last server response.

verbose output is :

>CWD /
< CWD command successful
>MDTM myfilename
< 213 20060214171222
* the requested document is not new enough

thanks

tonym
Received on 2006-02-22