Use HEAD request in get_redirect

The get_redirect function is currently using a GET request, downloading
the entire file just to access metadata. The pull request changes this
to a HEAD request.