Moved GetRedirectUrl to a new HttpUtilities class