cURL / Mailing Lists / curl-library / Single Mail


Re: How to Disconnect ?

From: Daniel Stenberg <>
Date: Fri, 2 Jun 2006 09:58:31 +0200 (CEST)

On Fri, 2 Jun 2006, Nilesh wrote:

> Another thing wanted to confirm is, once I do either easy or multi cleanup,
> do I again need to set all options required ( which were allready set ) to
> reconnect and start transfer again ?

Yes. Doing a cleanup() on the handle closes everything and frees the memory
used for the handle so there's nothing that can remember any previously set

> So setting CURLOPT_FORBID_REUSE will terminate the connection immediatly
> after curl_easy/multi_perform ?


> Can custom HTTP header addition (using curl_slist_append) "Connection :
> Close" help ?

Yes, it should have the same effect as CURLOPT_FORBID_REUSE.

  Commercial curl and libcurl Technical Support:
Received on 2006-06-02