Date: Tue, 1 Jan 2002 18:55:06 +0100 (MET)
On Fri, 21 Dec 2001, Adrian Mardare wrote:
[sorry for not having replied earlier, I've been away from my mail the last
two weeks something]
*PLEASE use the mailing list!*
> > Hm, well I'm open for suggestions how this could be improved. I believe
> > that you can indeed try to get the time before the download is completed,
> > as long as the get info call is made synchronously.
> You mean call get info from another thread, while the download is done by
> another thread?
Nope. I meant: call it from a callback function.
> I thought the easy (CURL*) structure cannot be shared between threads.
That's still very true.
> For now I can do this: have a CURLOPT_HEADERFUNCTION and in the header
> function look for the "Last Modified:" line. If that line is found and if
> the file is already in cache, I can return -1 from the header function and
> this will stop the transfer. This doesn't work for "ftp://" downloads.
How would you like it to work?
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-01-01