cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: patch to add CURLINFO_ERRROBUFFER

From: Mohun Biswas <m_biswas_at_mailinator.com>
Date: Mon, 28 Aug 2006 20:04:28 -0400

Mohun Biswas wrote:
> I've attached a simple patch to add a CURLINFO_ERRORBUFFER option.
>
> Here's why I think it's useful. When I was using the easy API it was,
> well, easy to use an error buffer. I'd allocate it on the stack, set it
> in the handle, make the connection, process errors if necessary, then
> use curl_easy_reset(). But in transitioning to the multi API one tends
> to put the handle on the multi stack at one place and time and check it
> for errors/take it off/deallocate it at another place and time. So it's
> no longer possible to allocate the buffer on the stack; it must be
> malloc-ed. But then how to get the pointer back later to be printed or
> freed?
>
> If there's a way to solve this without CURLINFO_ERRORBUFFER, please tell
> me.

What's the story with this? Thumbs up, thumbs down, or what? I need to
know whether to write my code to assume its existence or not.
Received on 2006-08-29