cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ask the reason of curl return "Transferred a partial file"

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 19 Jul 2011 00:50:12 +0200 (CEST)

On Mon, 18 Jul 2011, shili wrote:

> recently i used the curl to download the audio file on our server,and
> sometimes the curl quit by the reason of "Transferred a partial file", but
> when i used the command to download the file, i could download all of the
> file, i want to know the reason,what makes the curl return the error
> "Transferred a partial file"?

It reports that error when it sees that the amount of data it actually
transferred was not the same amount as the server has announced it would send.

> and is there any different between the curl command and the library?

No. The curl command does the entire transfer using the library.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-19