cURL / Mailing Lists / curl-users / Single Mail


Re: How do I abort curl_easy_perform()?

From: Daniel Stenberg <>
Date: Tue, 11 Jun 2002 14:52:51 +0200 (MET DST)

On Mon, 10 Jun 2002, Tom Mattison wrote:

[I'm cc'ing this to the libcurl mailing list as this definitely is a library
issue. Please take follow-ups there.]

> I'm using the curl library(V 7.9.6) on OS X in a cocoa application. I
> need a way to abort the processing of curl_easy_perform(). It appears that
> once I call curl_easy_perform() I have no way to stop the action before
> curl_easy_perform() completes its activities and returns. Does anybody
> have any ideas that might help me out?

You need to make one of the callbacks return an appropriate return code to
make curl stop. There is no other way.

    Daniel Stenberg -- curl groks URLs --
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
Received on 2002-06-11