try open_uri_redirection gem