Is this really the right way to do it? if the server is redirecting here, just parse the server response.