cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: How to Disconnect ?

From: Daniel Stenberg <daniel_at_haxx.se>
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.html
Received on 2006-06-02

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET