curl-library
RE: "easier" interface (was: Redirect Ouput to a variable in dll)
Date: Mon, 14 May 2012 17:50:10 +0000
> From: curl-library-bounces_at_cool.haxx.se [curl-library-bounces_at_cool.haxx.se] on
> behalf of Saravana kumar [saravanakumar.a.o_at_gmail.com]
> Sent: Monday, May 14, 2012 1:35 PM
> To: libcurl development
> Subject: Re: "easier" interface (was: Redirect Ouput to a variable in dll)
>
> > On Tue, May 8, 2012 at 2:42 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> >> This seemingly small idea can have a potentially large impact on all sorts
> >> of APIs and code without any significant benefit. Like for example how
> would
> >> the application free the buffer in which the response was received? What if
> >> the application also wants response headers, would they be returned in a
> >> separate buffer? What if the server returns a never-ending response-body?
>
> Yep, that's the point. That's the design of the API. Now, i
> understand. But what i asked was is there any official wrapper for
> doing such things? (OR) maybe in future? Moved myself from C, to
> Delphi wrapper instead of this (And Regex).
It doesn't seem like this would need an official wrapper. A third-party could write a simple library to do this, just by calling the existing curl functions, without having to change curl itself.
Joe
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-14