cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Aborting curl_easy_perform

From: Lothar May <curl_at_lotharmay.de>
Date: Wed, 23 Apr 2008 12:34:25 +0200

Hi,

Vijay wrote:
> Hi,
>
> If i have done curl_easy_perform and its a blocking call.
> But if server not responds for some time timeout occurs and its coming
> out of it.
> Is there any way to abort myself instead of getting timed out.
>
> Say in my client some event occurs so I want to abort the call is it
> possible?

You can use the curl_multi* calls for non-blocking downloads. See

http://curl.haxx.se/lxr/source/docs/examples/multi-post.c

Best regards,

Lothar
Received on 2008-04-23