1. Please stop trying to interpret the response bytes like that. Use oSession.GetResponseBodyAsString()
which is both simpler and works properly for non-UTF8 content.
2. Changing the request's URL
after it has already returned a response won't do anything. You probably want to instead change oSession.responseCode
and add a new response header oSession.oResponse["Location"] = "https://" + wrl;
That way, the client
performs the redirect.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.