cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: usage CURLOPT_TIMECONDITION with Upload FTP

From: <christophe.legry_at_orsyp.com>
Date: Tue, 5 Apr 2005 09:41:00 +0200

I added the modified source file ftp.c. (line 2225)

C.L.

-----Message d'origine-----
De : curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se]De la part de Daniel Stenberg
Envoyé : lundi 4 avril 2005 12:22
À : libcurl development
Objet : RE: usage CURLOPT_TIMECONDITION with Upload FTP

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:

   CURLOPT_TIMEVALUE

   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
   CURLOPT_TIMECONDITION.

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.html

  • application/octet-stream attachment: ftp.c
Received on 2005-04-05