RE: usage CURLOPT_TIMECONDITION with Upload FTP
Date: Mon, 4 Apr 2005 12:22:15 +0200 (CEST)
On Mon, 4 Apr 2005 christophe.legry_at_orsyp.com wrote:
> CURLOPT_TRANSFERTEXT is set with TRUE
> CURLOPT_TIMECONDITION is set with CURL_TIMECOND_IFUNMODSINCE
> CURLOPT_TIMEVALUE is set with long value of time="20050404085500" and the
> last modify date of distant file is "20050404085840"
Allow me to quote the manual:
Pass a long as parameter. This should be the time in seconds since 1 jan
1970, and the time will be used in a condition as specified with
If I count correctly, you should pass in 1112597700 if you meant "Apr 4 2005
08:55". You seem to have passed in something very odd.
> Have another solution?
I don't know since I don't know what you want this to do (and that is why I
asked you about it in my previous reply). This feature was made for downloads
so it doesn't surprise me if it doesn't work fully for uploads.
If you improve libcurl to deal with this better, I'll appreciate your patch.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-04-04