I am trying to consume an external API but the data that is returned is chunked:
Cache-control: max-age=7200
Content-Type: text/xml;charset=UTF-8
Vary: Accept-Encoding
P3P: CP="Anything"
ApacheTracking: localhost
Transfer-Encoding: chunked
which is causing me issues. I can see the data in Fiddler, but when trying to return the data from a Controller from within a WebAPI project, nothing is returned. My code looks like this:
// Try to get our products
using (var client = new HttpClient())
{
var response = await client.GetAsync(signedUrl);
return Ok(response);
}
but the client application has no data. It returns a statusCode of 200 though. Does anyone know how I can get my controller to return the chunked data?