title: C# WebRequest POST returns Html page - how to display it in browser
body: <p>I'm working with the SagePay payment gateway.</p>
  
  <p>On a checkout button click I'm using the method below to postData (contains the transaction data) to SagePay who then return the result in the form of a html page.</p>
  
  <pre><code>public string SendRequest(string url, string postData)
  {
      var uri = new Uri(url);
      var request = WebRequest.Create(uri);
      var encoding = new UTF8Encoding();
      var requestData = encoding.GetBytes(postData);
  
      request.ContentType = "application/x-www-form-urlencoded";
      request.Method = "POST";
      request.Timeout = (300 * 1000); //TODO: Move timeout to config
      request.ContentLength = requestData.Length;
  
      using (var stream = request.GetRequestStream())
      {
          stream.Write(requestData, 0, requestData.Length);
      }
  
      var response = request.GetResponse();
  
      string result;
  
      using (var reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII))
      {
          result = reader.ReadToEnd();
      }
  
      return result;
  }
  </code></pre>
  
  <p>How do I show this returned html in the users browser window as this would be where they enter their credit card info?</p>