Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From an HttpClient standpoint, content chunking is essentially a detail of the transport. The content provided by response.Content is always de-chunked for you by HttpClient.</p> <p>It looks like there's a bug in Web API that it doesn't correctly (re-)chunk content when requested by the response.Headers.TransferEncodingChunked property when running on IIS. So the problem is that the proxy is telling the client, via the headers, that the content is chunked when in fact it is not. I've filed the bug here: <a href="https://aspnetwebstack.codeplex.com/workitem/1124" rel="noreferrer">https://aspnetwebstack.codeplex.com/workitem/1124</a></p> <p>I think your workaround is the best option at the moment.</p> <p>Also notice that you have multiple layers here that likely weren't designed/tested for proxying scenarios (and may not support it). On the HttpClient side, note that it will automatically decompress and follow redirects unless you turn that behavior off. At a minimum, you'll want to set these two properties: <a href="http://msdn.microsoft.com/en-us/library/system.net.http.httpclienthandler.allowautoredirect.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.net.http.httpclienthandler.allowautoredirect.aspx</a> <a href="http://msdn.microsoft.com/en-us/library/system.net.http.httpclienthandler.automaticdecompression.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.net.http.httpclienthandler.automaticdecompression.aspx</a></p> <p>On the WebApi/IIS side, you've found at least one bug, and it wouldn't be suprising to find others as well. Just be forewarned there may be bugs like this currently writing a proxy using these technologies outside their main design use cases.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload