User forums > Help
Downloading nightly builds - resume
yop:
I 'm a fan of cURL
Sagrer:
Ok, i tried to look log of downloading (using FlashGet...), so i see interesting things.... i'll post 2 logs for different files - first is http://download.berlios.de/codeblocks/CB_20061009_rev3050_Ubuntu6.06.deb - i can't to resume it's downloading, and second is http://ftp.osuosl.org/pub/lfs-livecd/lfslivecd-x86-6.2-3.iso - i can resume it's downloading (as any other file - this is for example)....
I added my comments to log (marked as in c++).
this log is about downloading from berlios:
--- Code: -----> GET http://download.berlios.de/codeblocks/CB_20061009_rev3050_Ubuntu6.06.deb HTTP/1.1 //say it - we want to download this...
--> Host: download.berlios.de
--> Accept: */*
--> Referer: http://download.berlios.de/codeblocks
--> User-Agent: Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)
--> Pragma: no-cache
--> Cache-Control: no-cache
--> Connection: close
<-- HTTP/1.1 200 OK //Answered - ok, you'll can download this
<-- Date: Thu, 12 Oct 2006 09:39:41 GMT
<-- Server: Apache/2.0.54 (Linux/SUSE)
<-- X-Powered-By: PHP/4.4.0
<-- Cache-Control: must-revalidate, post-check=0, pre-check=0
<-- Content-Length: 6020456 //It said that it will be downloading full file with this length
<-- Content-Transfer-Encoding: binary
<-- Content-Disposition: attachment; filename="CB_20061009_rev3050_Ubuntu6.06.deb";
<-- Connection: close
[Downloading...] //downloaded 51 kb
[Socket Error=10061] //to imitate losing of connection - i blocked all internet acces using ZoneAlarm firewall - so it is a result :)
[Try to resume...] //FlashGet decided to resume....
--> GET http://download.berlios.de/codeblocks/CB_20061009_rev3050_Ubuntu6.06.deb HTTP/1.1
--> Host: download.berlios.de
--> Accept: */*
--> Referer: http://download.berlios.de/codeblocks
--> User-Agent: Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)
--> Range: bytes=51772- //say that we want to resume from this place....
--> Pragma: no-cache
--> Cache-Control: no-cache
--> Connection: close
<-- HTTP/1.1 200 OK //Answered... HTTP/1.1 200 OK... but WHY not HTTP/1.1 206 Partial Content ?????????
<-- Date: Thu, 12 Oct 2006 09:40:34 GMT
<-- Server: Apache/2.0.54 (Linux/SUSE)
<-- X-Powered-By: PHP/4.4.0
<-- Cache-Control: must-revalidate, post-check=0, pre-check=0
<-- Content-Length: 6020456 //so - it said that i'll download only full file again.... :(
<-- Content-Transfer-Encoding: binary
<-- Content-Disposition: attachment; filename="CB_20061009_rev3050_Ubuntu6.06.deb";
<-- Connection: close
--- End code ---
this log is about downloading from another host, not from berlios:
--- Code: -----> GET http://ftp.osuosl.org/pub/lfs-livecd/lfslivecd-x86-6.2-3.iso HTTP/1.1
--> Host: ftp.osuosl.org
--> Accept: */*
--> Referer: http://ftp.osuosl.org/pub/lfs-livecd
--> User-Agent: Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)
--> Pragma: no-cache
--> Cache-Control: no-cache
--> Connection: close
<-- HTTP/1.1 200 OK //ok, downloading...
<-- Date: Thu, 12 Oct 2006 09:42:43 GMT
<-- Server: Apache
<-- Last-Modified: Sun, 10 Sep 2006 03:10:31 GMT
<-- ETag: "b7f8003-1f751000-c8b797c0"
<-- Accept-Ranges: bytes
<-- Content-Length: 527765504 //ok, full file's size...
<-- Connection: close
[Downloading...] //downloaded 106 kb...
[Socket Error=10061] //imitate connection lose again...
[Try to resume...] //resuming...
--> GET http://ftp.osuosl.org/pub/lfs-livecd/lfslivecd-x86-6.2-3.iso HTTP/1.1
--> Host: ftp.osuosl.org
--> Accept: */*
--> Referer: http://ftp.osuosl.org/pub/lfs-livecd
--> User-Agent: Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)
--> Range: bytes=105999- //say that we want to resume from this place....
--> Pragma: no-cache
--> Cache-Control: no-cache
--> Connection: close
<-- HTTP/1.1 206 Partial Content //Yes, it answered that it'll be a resume of downloading !!!!!!!
<-- Date: Thu, 12 Oct 2006 09:43:49 GMT
<-- Server: Apache
<-- Last-Modified: Sun, 10 Sep 2006 03:10:31 GMT
<-- ETag: "b7f8003-1f751000-c8b797c0"
<-- Accept-Ranges: bytes
<-- Content-Length: 527659505
<-- Content-Range: bytes 105999-527765503/527765504 //Really - resuming from this place!
<-- Connection: close
--- End code ---
So... i dont know why, but berlios don't want to answer "HTTP/1.1 206 Partial Content", it always answer "HTTP/1.1 200 OK" and so all downloaders download files from first byte, not from last place :(.
I tryed FireFox's downloader, also - FlashGet and SDM - all of them don't want to resume... i dont think that wget will resume - if host don't say that it send partial content - downloader will download from first byte.... if no - i think that downloaded file will be corrupted because host will send content from first byte too....
thomas:
You're right, the BerliOS http download server indeed doesn't support range... :shock:
On the good side, however, I just tried the BerliOS public ftp server, and it supports resume just fine.
So... we only need to put the nightly builds onto the ftp server instead (if that works in an acceptable way with the release system).
Sagrer:
--- Quote ---So... we only need to put the nightly builds onto the ftp server instead (if that works in an acceptable way with the release system).
--- End quote ---
so, may it be done?
stahta01:
Found a windows file downloader that should work OK downloading CB.
Tim S
http://dfast.sourceforge.net/
From Site:
wxDownload Fast (also known as wxDFast) is an open source download manager. It is multi-platform and builds on Windows(2k,XP), Linux and Mac OS X. Besides that, it is a multi-threaded download manager. This means that it can split a file into several pieces and download the pieces simultaneously.
Created in C++ using the wxWidgets(wxWindows) library.
Navigation
[0] Message Index
[*] Previous page
Go to full version