cURL / Mailing Lists / curl-library / Single Mail


Let the user specify the download buffer

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


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
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?


Cristian Morales Vega
Office +44 (0) 20 3111 4330
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:
Received on 2014-03-31