cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: read function

From: Behnam Rashidian <BRashidian_at_zeugmasystems.com>
Date: Mon, 2 Oct 2006 14:04:04 -0700

Yes, that is the goal of course.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of m. allan noah
Sent: Monday, October 02, 2006 10:27 AM
To: libcurl development
Subject: Re: read function

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