curl-library
Re: How to Disconnect ?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 2 Jun 2006 09:21:11 +0200 (CEST)
Date: Fri, 2 Jun 2006 09:21:11 +0200 (CEST)
On Fri, 2 Jun 2006, Nilesh wrote:
> How to disconnect from the URL to which connection might have already
> established ?
> I want to explicitely disconnect for that URL ?
>
> Would cleaup function on handles( multi/easy) and global cleanup suffice ?
The curl_easy_cleanup() will always close any possibly still open connections.
You can also set the CURLOPT_FORBID_REUSE option which should make the
connection get closed immediately after use.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-06-02