cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: BUG: HTTP server doesn't seem to support byte ranges. Cannot resume.

From: sdrfnord <sdrfnord_at_gmx.de>
Date: Thu, 04 Apr 2013 12:40:09 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04.04.2013 12:18, Fabian Keil wrote:
> sdrfnord <sdrfnord_at_gmx.de> wrote:
>
>> I noticed a problem with curl. When a file is already downloaded completely and
>> curl is executed again using -C - then curl says "curl: (33) HTTP server doesn't
>> seem to support byte ranges. Cannot resume."
>>
>> I don't think that this is the intended behaviour. Wget does notice that the
>> file is already complete.
>
> Does wget get different headers from the server?
>
> I think it could be argued that curl's message isn't as precise
> as it could be, but the "Cannot resume" part seems correct to me.

My problem is the exit status. I mean everything worked perfect. The file is
completely downloaded and curl returns an exit status not equal to 0 ...

$ curl -C - http://www.heise.de/icons/ho/bilderstrecke.png -o bilderstrecke.png
$ wget -c http://www.heise.de/icons/ho/bilderstrecke.png -O bilderstrecke.png

- --
sdrfnord
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQIcBAEBAgAGBQJRXViBAAoJEJUtSNrvmor9r2kQANS74gIeaNbvO5ygGk2iU9vm
LEh3ati8ZwdPaAdKhSmrzpRx1zmgEKJYJ3NRMO9UZsJGB34yEWb1IjSz1Rvv23y/
UUyW40izn8JwDLJJECDmhlXZxyMH2WSKMhWElX1YgLcVykWcaFfdaXl0ALdepQFq
aVppVi1Qt8ueZNt5/wwuWInAdyvVNg/JieEa+HS3MCTMZdDTxv7O4wk5IKTSvRHv
2A1jO/oGI1asoktc+UX3N8VUsfgD+a1SIsyliYVWhkkdcPDdP+cDeqtR+5lhh3Wx
exPdLBYYRexjLdai2LNGBmEc5i0qTn4HjA2GNobLdjpyqbkym9RW8HOAjKK1XubC
HG26E3v7LCuafx/pzO10Gz6UdbkCOmtSYSNt696bY0ns2DlhWdj1hU1qHOyf6Ryd
ShSgWs5dcPKGu5P/d8dmV6vtfyZ3PVhdavbca8spPAJAd/sDlmOC6mJ7Zf6kWEz8
yAxtPB4y4xlijJp2J4NzSGRaxytsrK+qixKBDPPrHswySyKI0hvMCYZBM4yv75Xs
J6zL/7V9Vc+ypmpz+Y1IQx9QkrpkiHllwSfibRsd537K6lZ0J2s8MLDdPCL1XJKM
8FcTDbbm2qP0muuKpvH7S5PshJkcEU3cQp5hi9fZQYym1fF7vSZaKQMiRVrg2uZd
irAtgZX563H+n7XQDm83
=seGS
-----END PGP SIGNATURE-----
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-04