cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Error 52 - got nothing ?

From: Paul Johnson <paul_at_applewoodhouse.com>
Date: Tue, 15 Jul 2003 12:23:43 +0100

Can anyone help on this one please ? This is my last question mark

Regards,
Paul Johnson
Applewood House
www.applewoodhouse.com

----- Original Message -----
From: "Paul Johnson" <paul_at_applewoodhouse.com>
To: <curl-library_at_lists.sourceforge.net>
Sent: Monday, July 14, 2003 1:22 AM
Subject: Error 52 - got nothing ?

> Hi. I've just tried to do a server put using the libcurl easy interface
and
> got this error for my trouble. It seemed like it was uploading 91k of data
> in 16k chunks then failed after I sent it the final 0 bytes worth.
>
> Can anyone elucidate on what might be happening here? Is this actually an
> error or do I just ignore it?
>
> Many thanks in advance...
>
> PS. Here's my copy routine. It uses globals and is hardly a sterling
example
> of programming, although I think it probably is as everyone says this
kinda
> stuff :)
>
>
> size_t ReadBody (void *buffer, size_t size, size_t nmemb, void *userp)
> {
> tS32 Size;
>
> Size=size*nmemb;
>
> BytesLeft-=Size;
> if (BytesLeft<0)
> {
> Size+=BytesLeft;
> BytesLeft=0;
> }
>
> KickProgressBar(Size);
>
> if (!ReadPtr)
> ReadPtr=MoveFileMem;
>
> if (Size)
> {
> memcpy(buffer,ReadPtr,Size);
> ReadPtr+=Size;
> }
>
> if (Size)
> return (Size);
> else
> return (0);
> }
>
>
>
> Regards,
> Paul Johnson
> Applewood House
> www.applewoodhouse.com
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps1
>
>

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
Received on 2003-07-15