cURL / Mailing Lists / curl-library / Single Mail

curl-library

Let the user specify the download buffer

From: Cristian Morales Vega <cristian_at_samknows.com>
Date: Mon, 31 Mar 2014 16:31:53 +0100

Hi,

I would like to use libavformat to parse a HTTP stream. It already
includes a http client, but I would like to have more information
about the download process itself so I would like to use libcurl for
it.
My problem is that libavformat wants to parse data from a buffer
allocated with av_malloc() and naturally libcurl doesn't store the
data in such a buffer. Since performance is a problem, copying the
data from one buffer to the other is not an option.

I see I could use curl_easy_recv(). But the whole point of using
libcurl here is not having to think about the HTTP headers.

I would like to have a "CURLOPT_BUFFER" option, so I can instruct
libcurl to copy the data there directly. What are your thoughts about
adding it/accepting a patch?

Thanks.

-- 
Cristian Morales Vega
Email cristian_at_samknows.com
Office +44 (0) 20 3111 4330
Web:  www.samknows.com
This email is sent for and on behalf of SamKnows Limited.
This email and any attachments are confidential, legally privileged
and protected by copyright. If you are not the intended recipient
dissemination or copying of this email is prohibited. If you have
received this in error, please notify the sender by replying by email
and then delete the email completely from your system.
SamKnows Limited, Registered Number: 06510477, Registered Office: Hill
House, 1 Little New Street, London, EC4A 3TR. Registered in England
and Wales. Trade Mark 2507103
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-31