curl-library
Re: CURLFORM_STREAM bug?
Date: Tue, 23 Jun 2009 20:05:44 +0200 (CEST)
On Tue, 23 Jun 2009, Anton Bychkov wrote:
> I try to use CURLFORM_STREAM for form file upload.
> Documentation states that "CURLFORM_STREAM Tells libcurl to use the
> CURLOPT_READFUNCTION callback to get data. The parameter you pass to
> CURLFORM_STREAM is the pointer passed on to the read callback's fourth
> argument".
> So, I pass a pointer as an argument for this option and expect to get that
> pointer in 'stream' arg of ReadData function.
> But that's not how it appears to work. 'stream' arg contains pointer to
> '__iob' type variable.
$ cd tests && ./runtests.pl 554
[...]
test 554...[HTTP multi-part formpost using read callback for the file part]
-d-p-emv OK (1 out of 1 , remaining: 00:00)
TESTDONE: 1 tests out of 1 reported OK: 100%
Seems to work fine for me. Test 554 was added in March 2008 and has ran OK
ever since... Can you see how that differs from your use?
-- / daniel.haxx.seReceived on 2009-06-23