Hello Volker

>> Also this one fails:
>> 
>> wget -O project.html
>>   http://sourceforge.net/project/showfiles.php?group_id=23617
>> 
> However, a second try yielded to the whole file ....
> So maybe you can work around that by trying:
> 
>     del project.html
>     wget -O project.html 
> http://sourceforge.net/project/showfiles.php?group_id=23617
>     wget -cO project.html 
> http://sourceforge.net/project/showfiles.php?group_id=23617
> 
For my case the -c option of wget is only an intelligent protection
of an already partially downloaded file. In this sense, I can use
it. However, continuation doesn't really work since the URL doesn't
specify the file to be downloaded, but the name of a php script that
dynamical creates the file on the server side. And this dynamical
created file differs every time the php script is restarted.

I am sure now that the download fails only at times when
sourceforge.net is overloaded. So the only work around I can
recommend when download.bat fails is: Try it later, when
sourceforge.net is less busy.

In spite of that I will enhance download.bat shortly as follows:

- It will be more robust and will realize if a download fails. (It
  will look for an end tag </html> within project.html since wget
  doesn't realize if the download is interrupted.

- If the download fails, it will retry it, where by some parameters
  are change every time:
  1. The download URL will alter between https://... and http://...
  2. Also, the download rate will be limited more and more with
     every trial to give the server side php script more time to
     complete.

- If it isn't possible to download project.html at all, download.bat
  will be able to alternatively use a list of file that resides in a
  file named filelist.txt. This file can be created by download.bat
  at another place or at another time.

With kind regards

Mathias

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to