Why does IIS not support chunked transfer encoding?
Posted
by Graeme Perrow
on Stack Overflow
See other posts from Stack Overflow
or by Graeme Perrow
Published on 2008-12-03T20:45:42Z
Indexed on
2010/03/30
17:03 UTC
Read the original article
Hit count: 480
I am making an HTTP connection to an IIS web server and sending a POST request with the data encoded using Transfer-Encoding: chunked. When I do this, IIS simply closes the connection, with no error message or status code. According to the HTTP 1.1 spec,
All HTTP/1.1 applications MUST be able to receive and decode the "chunked" transfer-coding
so I don't understand why it's (a) not handling that encoding and (b) it's not sending back a status code. If I change the request to send the Content-Length rather than Transfer-Encoding, the query succeeds, but that's not always possible.
When I try the same thing against Apache, I get a "411 Length required" status and a message saying "chunked Transfer-Encoding forbidden".
Why do these servers not support this encoding?
© Stack Overflow or respective owner