PR 54374: support status code 307 redirects in <get>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1429209 13f79535-47bb-0310-9956-ffa450edef68
another fix from commons - tar doesn't use specified encoding when reading GNU long names

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1429212 13f79535-47bb-0310-9956-ffa450edef68