Enable Chunked Transfer Encoding in ASP.NET
Asked Answered
U

2

2

I have an ASP.NET 3.5 website residing on IIS7. I am using dynamic compression and wanted to see if I can enable chunked encoding. Is there some setting on IIS or web config that enables it?

Unguinous answered 17/2, 2010 at 1:22 Comment(1)
P
1

In my experience, calling Response.Flush() will set the Transfer-Encoding to chunked. And actually I think setting Response.BufferedOutput will set it to chunked everytime Response.OutputStream is flushed.

That is unless a Content-Length has been set, then it just flushes the output without setting chunked.

Playpen answered 17/2, 2010 at 1:39 Comment(2)
I was having a different issue, but your answer pointed me in the right direction. Thx.Pentarchy
This is not true. Calling Response.Flush() does not add the 'Transfer-Encoding' to the response headers. At least not in all asp.net versions, which version are you using ?Frantz
T
-1

If you edit the IIS configuration you can set the <asp enableChunkedEncoding /> element / attribute to set this.

Temple answered 21/4, 2010 at 10:2 Comment(1)
where that section is?Cologarithm

© 2022 - 2024 — McMap. All rights reserved.