Modify site content and render it in browser
Clash Royale CLAN TAG #URR8PPP Modify site content and render it in browser I am writing a proxy for some site using ASP.NET Core 2.0. My proxy works fine if all it does is just re-translating HttpResponseMessage to the browser. My proxy based on this example. But I need to make some changes site content, for instance, some of the href contains an absolute reference. So when I click them from my proxy, I get to the original site, and it is a problem. HttpResponseMessage When I tried to get site HTML as a string, I got only special characters. After some search, I find this solution. It fits for my case well and I successfully get site content as a string, which starts with "<!DOCTYPE html>..." . After changes are done I need to send this string to my browser, and here I have a problem. I work with the HttpResponseMessage the following way: "<!DOCTYPE html>..." HttpResponseMessage using (var responseStream = await responseMessage.Content.ReadAsStreamAsy...