On Sat, Jan 06, 2007 at 12:04:17AM +0100, Mathias Michaelis wrote: > > 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.
That's true. So forget "-c" :-) > 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 Good idea! > since wget > doesn't realize if the download is interrupted. This is no particular problem of wget. curl is behaving similar. So this might be an issue of SourceForge. They seem to close the connection in a clean way without having tranferred the whole data. I don't think this is a bug of wget or curl anymore. > - 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. You have put very much effort in playing with the strange behaviour of SourceForge. Maybe you could split your code in a gnuwin32 specific part and a generic SourceForge-downloader? Such a downloader may be interesting for other projects, too. Greets, Volker -- Volker Grabsch ---<<(())>>--- Administrator NotJustHosting GbR ------------------------------------------------------------------------- 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