cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: CURLE_PARTIAL_FILE

From: Cadime <ricardo-v-cadime_at_ptinovacao.pt>
Date: Tue, 30 Apr 2002 15:03:14 +0100

Hello,

I am sorry to insist... I wonder I could find the best solution for this...

I am getting many files from a server. I know that thos files are text.
Thus, I used CURLOPT_TRANSFERTEXT.
However, when I try to get a single file the server says its size is 310
bytes. However, I got 315 bytes. If I used BIN mode I would got 310 bytes (
I tested it ). Any explanation ? Does all servers act like this?

OK, I tried to forget CURL_PARTIAL_FILE error ( act as a warning ). However,
I need CURL to do the CURLOPT_POSTQUOTE commands and it is returning before
that...

Should I do the transfer ALWYS in binary mode? Or there is any other
solution?

Thanks a lot
Ricardo Cadime

-----Original Message-----
From: Vishal_garg [mailto:Vishal_garg_at_infy.com]
Sent: terça-feira, 30 de Abril de 2002 9:39
To: Daniel Stenberg; Cadime
Cc: libcurl Mailing list
Subject: RE: CURLE_PARTIAL_FILE

I have also encountered this error. The error I got was due to the fact
that the file I was trying to ftp was being written at that time. However
we can ignore this error and accept the partial file retrieved by libcurl.

-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Tuesday, April 30, 2002 12:56 PM
To: Cadime
Cc: libcurl Mailing list
Subject: Re: CURLE_PARTIAL_FILE

On Mon, 29 Apr 2002, Cadime wrote:

> I am getting the CURLE_PARTIAL_FILE error. Anyone has an idea of in what
> typical circumstances it happens???

As of recently, there's a libcurl-errors man page that atttempts to describe
tings like that. What the error means, when it happens etc.

I just realized it wasn't available on the web site, so I put it up this
morning and you should be able to browse it now here:

  http://curl.haxx.se/libcurl/c/libcurl-errors.html

> I think it means that the size of the retrieved fle is not the expected
> one. Right? But how?

It means that the data you received had a size that differs from what the
server told us it would be, either bigger or smaller.

How? Well, that's left for you to figure out... :-)

> I am using curl 7.9.2

I'd recommend using no less than 7.9.6.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-04-30