Use HEAD request in get_redirect

Prevent unnecessary data transfer