cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
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
> 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?
Received on 2009-06-23
These mail archives are generated by hypermail.
Page updated November 12, 2010.
File upload with ASP.NET
web site info