cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Can I reset CURLOPT_WRITEFUNCTION?

From: Mohun Biswas <m_biswas_at_mailinator.com>
Date: Mon, 26 Nov 2007 11:19:31 -0500

Michael Hecker wrote:
> Hello,
> I'm reusing a connection to perform several requests. I only need the
> data of the second request so I set CURLOPT_WRITEFUNCTION for that request.
> Afterwards there are two other requests and I don't need the data data
> of theses requests. Can I somehow reset/disable CURLOPT_WRITEFUNCTION?
> Or is it basically unnecessary, because there is no diference in the
> speed anyway?

In addition to what Daniel says, you might consider making the
subsequent requests use the HEAD method.

MB
Received on 2007-11-26