support http statuscode 302 redirect
support some mirror dist url like /package/download/package-version.tgz