Use HEAD request in get_redirect

Prevent unnecessary data transfer
Merge pull request #1274 from nathan11g/get_redirect_HEAD

Use HEAD request in get_redirect