cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Error 52 - got nothing ?

From: <RBramante_at_on.com>
Date: Tue, 15 Jul 2003 08:58:50 -0400

It looks like a server error to me unless there is some other bug in curl
or in your code. In the code I have for 7.10.5 this error is only
returned in one place (http.c, Curl_http_done())

  if(0 == (http->readbytecount + conn->headerbytecount)) {
    /* nothing was read from the HTTP server, this can't be right
       so we return an error here */
    failf(data, "Empty reply from server");
    return CURLE_GOT_NOTHING;
  }

So the way I am reading this is that curl has finished the upload and is
now waiting for the HTTP response from the server which it doesn't get.

Are you setting the content-length?

If you have a way to get a network trace it would be interesting to see if
the server actually closing the connection without sending a HTTP response.

|---------+---------------------------------------->
| | "Paul Johnson" |
| | <paul_at_applewoodhouse.com> |
| | Sent by: |
| | curl-library-admin_at_lists.sour|
| | ceforge.net |
| | |
| | |
| | 07/15/2003 07:23 AM |
| | Please respond to |
| | curl-library |
| | |
|---------+---------------------------------------->
>----------------------------------------------------------------------------------------------------------|
  | |
  | To: <curl-library_at_lists.sourceforge.net> |
  | cc: |
  | Subject: Re: Error 52 - got nothing ? |
>----------------------------------------------------------------------------------------------------------|

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

-------------------------------------------------------
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