curl-library
Re: Interrupting in-progress download
From: Michael Wallner <mike_at_iworks.at>
Date: Wed, 02 Nov 2005 16:45:47 +0100
Date: Wed, 02 Nov 2005 16:45:47 +0100
Hi Daniel Lavalliere, you wrote:
> Assuming a http file download is in progress, CURLOPT_NOSIGNAL = 0
> and CURLOPT_TIMEOUT=1200, is there any way to request libcurl to stop
> downloading the file now if you know the connection just went dead
> and will not be back up before the timeout occurs.
I'd say returning <= 0 from write_data() should help, but I don't think
that curl will call write_data() if it cannot read anything...
Regards
-- Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gzReceived on 2005-11-02