cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Input streams

From: Christopher Conroy <cconroy_at_gmail.com>
Date: Sat, 20 Feb 2010 11:03:07 -0500

On Fri, Feb 19, 2010 at 9:38 AM, Patrick Monnerat
<Patrick.Monnerat_at_datasphere.ch> wrote:
>
> In libcurl, we may have 3 different kinds of input data sources:
>
> 1) File, via CURLOPT_READFUNCTION/CURLOPT_READDATA = NULL/(FILE *)
> 2) Callback, via CURLOPT_READFUNCTION = some user defined function
> 3) Memory, using CURLOPT_POSTFIELDS.
>
> However, the 3rd case only works for HTTP(S) (and maybe RTSP: I did not
> try).

For those who might be curious, this feature does work with RTSP. See
libtest568.c

--Chris Conroy
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-20