Re: Sending Large file using HTTPPOST fails with error CURLE_SEND_ERROR
Date: Fri, 10 Jul 2009 11:05:22 +0530
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)
int NoOfBytesRead = 0;
gCallbackcount = gCallbackcount+ 1;
if( gbterminateTransfer != TRUE )
if( ( NoOfBytesRead = fread( pBuffer, size, nmemb, (FILE*)hFile ) )
== nmemb )
return -1 ;
On 7/9/09, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Thu, 9 Jul 2009, chandrakant gupta wrote:
> I am using HTTPPOST with Callback to post files via HTTPS. It works great
>> for any file up to a certain size (haven't spent the time to narrow it down
>> exactly). But a file of 5 mb posted fine, and a file of 10mytes fails with
>> error code 55 (CURLE_SEND_ERROR).
> I assume "10mytes" is 10 megabytes? But it really doesn't matter since
> libcurl has no buffers at all that fit even close to 5MB.
> And you didn't mention what libcurl version on what OS so we can't make any
> clever guesses based on that either.
> Thus, I would claim the problem is in your network or in the server end.
> / daniel.haxx.se
-- Regards, Chandrakant TERA INFORMATICS PVT LTDReceived on 2009-07-10