cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

RE: usage CURLOPT_TIMECONDITION with Upload FTP

From: Daniel Stenberg <daniel-curl_at_haxx.se>
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:

   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
Received on 2005-04-04

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET