title: Turning HttpWebResponse into an HttpResponseMessage
body: <p>I have the following action in an asp.net WebAPI controller:</p>
  
  <pre><code>public HttpResponseMessage GetCBERSS(string Site, string File, string User, string Password)
  {
      string URLString = string.Format("https://{0}.rss.mycompany.com/{1}", Site, File);
      Uri uri = new Uri(URLString);
      CredentialCache cache = new CredentialCache();
      cache.Add(uri, "Basic", new NetworkCredential(User, Password));
      WebRequest r = WebRequest.Create(uri);
      r.Credentials = cache;
      r.ContentType = "application/rss+xml";
      IgnoreBadCertificates();
      HttpWebResponse result = (HttpWebResponse)r.GetResponse();
      return ???;
  }
  </code></pre>
  
  <p>How can I convert the HttpWebResponse into an HttpResponseMessage?</p>