Author Topic: Downloading nightly builds - resume  (Read 7648 times)

Offline Sagrer

  • Multiple posting newcomer
  • *
  • Posts: 12
Downloading nightly builds - resume
« on: October 12, 2006, 02:58:52 am »
About process of downloading from berlios - can it be resumed? I has a very bad connection (modem, 26.4 kbit/s) - so if i try to download 5 mb file - i must to do this 4-5 times - it downloads to 60% for example, then error, then downloading again from 0%, then error in 45% and resume from 0% again..... may be it is any way to resume? any mirrors?

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Downloading nightly builds - resume
« Reply #1 on: October 12, 2006, 03:09:49 am »
Check this post.

Offline Sagrer

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Downloading nightly builds - resume
« Reply #2 on: October 12, 2006, 04:14:06 am »
I tried sun download manager.

Installed, then tryed to download http://download.berlios.de/codeblocks/CB_20061009_rev3050_Ubuntu6.06.deb

- when 1% was downloaded - i paused download, then resumed - download begans from 0%.
« Last Edit: October 12, 2006, 04:24:41 am by Sagrer »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Downloading nightly builds - resume
« Reply #3 on: October 12, 2006, 05:03:59 am »
You are right it does not resume the download at where you were. But, I have been able to download the nightly build using SDM. I would try it and see if it errors out for you. I use the SVN normally to update codeblocks. But, unless I use SDM I can't seem to get a download that does not error out. I am using windows so Linux might have solutions that are better. I am using 56K modem connection.

Note: The SDM does resume for some sites for me.

Note 2: And, if you stop the download for Berlios it lets you choose to continue the download. I have no idea why pause does not let you resume. Resume is an FTP server function that all servers do not support.

Note 3: You can stop downloading a file (even after you paused it); and, then highlight the file and pick "Retry File" and it gives you the option to continue the download. If you get an error also use "Retry File".

Tim S
« Last Edit: October 12, 2006, 05:49:58 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Downloading nightly builds - resume
« Reply #4 on: October 12, 2006, 08:50:46 am »
Why don't you guys use wget?  :shock:

It doesn't need Java and is not mega-bloated and mega-slow like everything in Java. Plus... it *can* resume downloads...

http://prdownloads.sourceforge.net/mingw/wget-1.9.1-mingwPORT.tar.bz2?download
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: Downloading nightly builds - resume
« Reply #5 on: October 12, 2006, 04:20:50 pm »
I 'm a fan of cURL
Life would be so much easier if we could just look at the source code.

Offline Sagrer

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Downloading nightly builds - resume
« Reply #6 on: October 12, 2006, 07:10:06 pm »
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

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

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....

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Downloading nightly builds - resume
« Reply #7 on: October 12, 2006, 07:59:58 pm »
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).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Sagrer

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Downloading nightly builds - resume
« Reply #8 on: October 14, 2006, 12:01:06 am »
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).

so, may it be done?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Downloading nightly builds - resume
« Reply #9 on: November 21, 2006, 11:56:38 pm »
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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org