cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Sending Large file using HTTPPOST fails with error CURLE_SEND_ERROR

From: chandrakant gupta <chandar175gupta_at_gmail.com>
Date: Mon, 13 Jul 2009 11:13:23 +0530

Hello
Good morning,
I am sending code of readcallback and uploadfile.
Please see this if it has any problem or there is any other way to upload
file throught callback only.

On 7/11/09, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Fri, 10 Jul 2009, chandrakant gupta wrote:
>
> please don't top-post!
>
> Good morning, i am working with Curl version 7.19.2 and on windows
>> platform. my read_callback function is like this
>>
>> size_t CProxyCurl::read_callback(void * pBuffer, size_t size, size_t
>> nmemb,
>> void * hFile)
>> {
>>
>
> Does this really work? This looks like a method as a member of a C++ class,
> and libcurl is plain C and calls a plain pointer =>
>
> http://curl.haxx.se/docs/faq.html#Using_C_non_static_functions_f
>
> Apart from this, it'll be easier if you post a complete example that fails
> to upload a 10MB file as then we can fully understand and try it in our
> ends.
>
> --
>
> / daniel.haxx.se
>

Received on 2009-07-13