|
From: Max H. <ma...@qu...> - 2011-09-27 09:57:38
|
Am 27.09.2011 um 01:06 schrieb Alexander Hansen: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 9/26/11 5:04 PM, Alexander Hansen wrote: >> I asked SF.net about how to replace our ailing mirror list with >> something that still contains geographic information and here's >> the response. It looks like we'd need to do some additional coding >> to implement it. > > I've also been playing around with Using > "http://downloads.sourceforge.net/project/<project path>". This works > with wget, but not curl: > [...] > curl --connect-timeout 30 -f -L -A 'fink/0.31.2' -O > http://downloads.sourceforge.net/project/octave/Octave\ Forge\ > Packages/R2009-06-07/multicore-0.2.15.tar.gz > % Total % Received % Xferd Average Speed Time Time Time > Current > Dload Upload Total Spent Left > Speed > 0 0 0 0 0 0 0 0 --:--:-- --:--:-- > - --:--:-- 0 > curl: (22) The requested URL returned error: 400 > ### execution of curl failed, exit code 22 > Downloading the file "multicore-0.2.15.tar.gz" failed. This error is caused by the spaces in the filename. Wget automatically converts these to %20, but curl doesn't. Once I replaced the spaces manually by %20, curl worked just fine. A simple sed or perl statement can of course automate this. Note that wget will accept the URL with %20, too. So maybe we should URL encode URLs before passing them to the downloader tool? Bye, Max |