|
From: Alexander H. <ale...@gm...> - 2011-09-26 21:04:28
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. - -------- Original Message -------- Subject: Re: Best option to select a particular mirror for wget/curl download Date: Mon, 26 Sep 2011 16:54:45 -0400 From: SourceForge.net Support <sfn...@ge...> To: Alexander Hansen <ale...@gm...> Hello, We recommend that you simply use the "use_mirror" option to specify a download mirror. Here's an example using wget: ~~~~~~ $ wget http://sourceforge.net/projects/fink/files/fink/0.31.2/fink-0.31.2.tar.gz/download?use_mirror=garr - --2011-09-26 16:48:40-- http://sourceforge.net/projects/fink/files/fink/0.31.2/fink-0.31.2.tar.gz/download?use_mirror=garr Resolving sourceforge.net... 216.34.181.60 Connecting to sourceforge.net|216.34.181.60|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://downloads.sourceforge.net/project/fink/fink/0.31.2/fink-0.31.2.tar.gz?r=&ts=1317070120&use_mirror=garr [following] - --2011-09-26 16:48:40-- http://downloads.sourceforge.net/project/fink/fink/0.31.2/fink-0.31.2.tar.gz?r=&ts=1317070120&use_mirror=garr Resolving downloads.sourceforge.net... 216.34.181.59 Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://garr.dl.sourceforge.net/project/fink/fink/0.31.2/fink-0.31.2.tar.gz [following] - --2011-09-26 16:48:41-- http://garr.dl.sourceforge.net/project/fink/fink/0.31.2/fink-0.31.2.tar.gz Resolving garr.dl.sourceforge.net... 193.206.140.34, 2001:760:ffff:b0::34 Connecting to garr.dl.sourceforge.net|193.206.140.34|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1339174 (1.3M) [application/x-gzip] Saving to: `fink-0.31.2.tar.gz' 100%[==============================================================================>] 1,339,174 340K/s in 4.2s 2011-09-26 16:48:46 (313 KB/s) - `fink-0.31.2.tar.gz' saved [1339174/1339174] $ ~~~~~~ garr is actually almost across the globe from me, and I just used that to demonstrate that it is indeed picking a mirror it wouldn't have auto-selected (an auto-select would probably have selected voxel for me). You can see a list of mirror shortnames to use here: http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors Also note that this download URL will indeed require a tool that follows 302 redirects, wget will do that automatically, curl requires the -L option. I'm not familiar with axel, so I don't know if that needs any special consideration or not. For further reading, we have some info in our community docs on downloading via command-line here: http://sourceforge.net/p/forge/community-docs/downloading-via-cli/ Regards, Chris Tsai SourceForge Support sfn...@ge... On Mon, Sep 26, 2011 at 2:11 PM, Alexander Hansen <ale...@gm...> wrote: > Hi. > > I'm a developer with the Fink project. A good of the packages we > maintain are hosted at SourceForge, but we're currently relying on > redirection of our crufty URLs to find them. :-) We use tools > like wget, curl, axel, .. to download the source files. > > The current syntax we're using to pick out individual mirrors is, > for example, to download directly from: > > http://voxel.dl.sourceforge.net/sourceforge/ > > followed by the path to the project's source. These aren't > resolving anymore and so users have to go through redirects to get > the sources. > > Do we have the option to choose a definite mirror, e.g. so our > users can pick one close to them geographically? > ==== This e- mail message is intended only for the named recipient(s) above. It may contain confidential and privileged information. If you are not the intended recipient you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and delete the message and any attachment(s) from your system. Thank you. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6A6NAACgkQB8UpO3rKjQ85lwCffEAJE4rlSvnnrjaiaJ15X7Vs w4wAn2baxMeqLkS2SDpMOXPRaXGSNiix =Q8P2 -----END PGP SIGNATURE----- |