cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: "easier" interface (was: Redirect Ouput to a variable in dll)

From: Lars Nilsson <chamaeleon_at_gmail.com>
Date: Tue, 8 May 2012 07:43:24 -0400

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?

You left out a pointer does not convey length, making binary transfers
harder to deal with as you'd need to use curl_getinfo() with some new
parameter to query for length or some other means of conveying the
information.

Lars Nilsson
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-08