Skip to main content
GameDev.net gamedev.net
🔒 Locked

Curl question

Started by NuffSaid Jan 8, 2004 at 11:11 AM 0 replies 550+ views
Original Post
NuffSaid
NuffSaid
I''m using curl as a kind of download manager as it supports download resuming. The command I use to download files is
quote:
curl -C - -O address
Now my question is whenever I resume a download, it doesn''t calculate the % of the file to download as a total size of the file, but of the bits that is left to download. OK. That probably was the most obfuscated sentence, so I''ll explain using an example. Say I''m downloading a 10 MB file, and I got cut off after downloading 2 MB. That means that I''ve downloaded 20 % and I''ve got 80% left to go. However, when I resume the download, the information displayed shows 0% downloaded, but the total size of the file to download is 8MB (instead of 10). Anyone know how I can get curl to display 20% when it resumes downloading?
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.