curl-library
Re: How do I reset a CURL handle?
Date: Thu, 26 Jun 2003 09:58:49 +0100
On Wednesday 25 June 2003 23:37, Wei Weng wrote:
> I have a CURL* handle = curl_easy_init(); Then I set some option for
> it with curl_easy_setopt. However it seems to me that the options I
> set for that particular handle is kept inside CURL, that every time if
> I run curl_easy_perform(handle), the old options get run again. How
> can I reset the CURL handle to prevent this from happening?
The options remain set while the handle exists. Either set the options you
want changed before the next curl_easy_perform, or just destroy the handle
using curl_easy_cleanup and create a new one.
James
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
Received on 2003-06-26