I am creating a script, which should download latest version of an application from repository and deploy the app.
The main issue: there are several repositories and I need to check, which of them has most recent version.
E.g.
http://repo1/xyz/LATEST -> (redirects to) -> http://repo1/xyz/app-1.0.0.0.zip
http://repo2/xyz/LATEST -> (redirects to) -> http://repo1/xyz/app-1.1.0.0.zip
So I need to iterate over available repositories and get only a filename - no need to download obsolette versions of software.