Re: Does there exist a download URL that will redirect me to a mirror?

2018-11-06 Thread Mark Thomas
On 06/11/2018 19:24, Christopher Schultz wrote:
> All,
> 
> Does ASF host a web service that I can hit that requests a download of
> a particular resource, but first to redirect to a mirror?

Look at the Tomcat 9 build script. In particular, the entry for
base-apache.loc.1 in build.properties.default

Mark


> 
> If I go to e.g. https://tomcat.apache.org/download-90.cgi, I'll get a
> bunch of links that point to a randomly-chosen mirror, but what I'd
> like to do is request e.g.
> 
> 
> https://tomcat.apache.org/download/tomcat-9/v9.0.12/bin/apache-tomcat-9.
> 0.12.zip
> 
> and get a redirect to e.g.:
> 
> 
> http://ftp.naz.com/apache/tomcat/tomcat-9/v9.0.12/bin/apache-tomcat-9.0.
> 12.zip
> 
> Does anything like that exist?
> 
> If not, is it something worth building?
> 
> I'm asking because I'd like to start scripting the release-builds, and
> it would be nice to fetch things like e.g. subversion with a
> well-known URL but not always hitting ASF directly (because mirrors
> are great!).
> 
> Thanks,
> -chris
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Does there exist a download URL that will redirect me to a mirror?

2018-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

All,

Does ASF host a web service that I can hit that requests a download of
a particular resource, but first to redirect to a mirror?

If I go to e.g. https://tomcat.apache.org/download-90.cgi, I'll get a
bunch of links that point to a randomly-chosen mirror, but what I'd
like to do is request e.g.


https://tomcat.apache.org/download/tomcat-9/v9.0.12/bin/apache-tomcat-9.
0.12.zip

and get a redirect to e.g.:


http://ftp.naz.com/apache/tomcat/tomcat-9/v9.0.12/bin/apache-tomcat-9.0.
12.zip

Does anything like that exist?

If not, is it something worth building?

I'm asking because I'd like to start scripting the release-builds, and
it would be nice to fetch things like e.g. subversion with a
well-known URL but not always hitting ASF directly (because mirrors
are great!).

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlvh6l8ACgkQHPApP6U8
pFitjA//bcgpFe8JryxdQnzF2BRlqrz1L2wGEkUM+EJY982Z+MgrGwNdJp8cJgNc
FlSH6cGji5U97rBVgOrWLmuElNJK7+JSXAO225pITS/S2/MmhK1GuR/qo6Ujw6Y4
d22jY+SqQJDMZ9Q2yGLeO1fvseErgvkPj9BuRFLAHXLCGll3U6mRQEKFTnQBzbGb
qI2aXcZdHUovaHP+VNAvrbhReQ8NQOwHKsSwS44Jc8gc73Y5ADoHt4lrLghS2IXa
b3VBQkmKP+H7My2DVsh3sbPHCTdHinM7K6cE9aHa7UPEgF+ZO+hELGnqCKvTL66w
De30pudwYXG+dfg+CJVPPTE7q6VfRvxKNEIUOnitlLQQILEQYv+wnoITyAPx3xwN
eIx9HQhoJUyikheMRWO174ErfomDzE+YxhKnNH9soQSiKSAKx9YGaSX38EjB0Ym8
Qz4e+ZJZtO5ZO7Yw4BYr9t5vqiLJcaEglsJ70QsoyQnJbxiDKhTr+EADoVhxewy8
EkKwyeoGlmiEmHIiCZ/2W21I/Ka4B1L4J5aJU6HDVbK0oWirDqGQvDgvJeBhbzlC
FRfA/8JjlX7JwjVUEi2eCeHrctc7sPMs3Fkk7PIpxXxUF6JRY9lYhUK++Y4Syuox
pLIcltmqW1frckPgq04SpkAvpN8tXhGE1OPHO09zgFHV9EVba3A=
=WVUh
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org