cURL / Mailing Lists / curl-library / Single Mail

curl-library

[ curl-Bugs-1053287 ] continue fails on completely downloaded files

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 24 Oct 2004 10:43:31 -0700

Bugs item #1053287, was opened at 2004-10-24 17:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1053287&group_id=976

Category: http
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Tomas Pospisek (tpo)
Assigned to: Daniel Stenberg (bagder)
Summary: continue fails on completely downloaded files

Initial Comment:
System is a linux 2.4 box
 
$ curl --version
curl 7.12.2 (i386-pc-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7d
zlib/1.2.1.1 libidn/0.5.2
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: IDN IPv6 Largefile NTLM SSL libz
 
The file /tmp/X has allready been entirely downloaded:
$ ls -l /tmp/X
-rw-r--r-- 1 tpo tpo 22688683 Oct 24 19:34 /tmp/X
 
If I try to resume download curl fails:
 
curl -C - --fail https://some.apache.webserver/X
** Resuming transfer from byte position 22688683
  % Total % Received % Xferd Average Speed Time Time
Time Current
                                 Dload Upload Total Spent Left
Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
curl: (22) The requested URL returned error: 416
 
This behaveour is problematic, since when scripting curl I have
no idea if the file in question is on disk is the same one as the
one on the server (file1 != file2 <-> sizeof(file1) !=
sizeof(file2)).
 
IMHO curl should determine that download has "failed" because
the file is allready on disk in its entirety.
 
Thanks,
*t

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1053287&group_id=976
Received on 2004-10-24