cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: read function

From: m. allan noah <man_at_tfhs.net>
Date: Mon, 2 Oct 2006 13:26:44 -0400 (EDT)

On Mon, 2 Oct 2006, Behnam Rashidian wrote:

> Hello all,
>
> I am looking for hints or maybe sample code that would do the opposite
> of getinmemory.c, because I need to read a chunk of memory and then
> stream it over TCP instead of saving it into a file. I found this
> example in the tutorial but not sure how to use it or where to find the
> read function.
>
> curl_easy_setopt(easyhandle, CURLOPT_READFUNCTION, read_function);

are you trying to POST this block of data to an http/ftp server? if not,
then why use libcurl at all?

allan

>
> Thank you
> Behnam
>
Received on 2006-10-02