curl-library
Re: Reading from a stream
From: Stephen Collyer <scollyer_at_netspinner.co.uk>
Date: Thu, 27 Mar 2008 14:26:35 +0000
Date: Thu, 27 Mar 2008 14:26:35 +0000
Robert Bielik wrote:
> What I'd want to do is to provide curl with a stream pointer and just
> tell curl how large it is, not having
> curl test-open the file or anything, then just call me back via
> curl_read_callback and I'll just provide
> the data without curl knowing anything about the underlying file.
Can't you do this by passing the open stream pointer as CURL_READDATA,
then using the pointer in the read callback ? I have done exactly
this with the easy_ interface and it works fine (in my case, however,
I passed a pointer to an open Qt QFile object).
-- Regards Steve Collyer Netspinner LtdReceived on 2008-03-27