in reply to determine url redirection
HTTP::Response also has a ->is_redirect method. Check that and decide what to do.