HttpWebResponse httpResponse = (HttpWebResponse)request.GetResponse(); var response = new HttpResponseMessage(HttpStatusCode.OK); if (httpResponse != null) { using (var responseApi = (HttpWebResponse)httpResponse) { using (var reader = new StreamReader(responseApi.GetResponseStream())) { var objText = reader.ReadToEnd(); response.Content = new StringContent(objText, Encoding.UTF8, "application/json"); } } }
<pre>var responseApi = (HttpWebResponse)httpResponse)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)