title: Why doesn't IIS support chunked transfer encoding?
body: <p>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 <a href="https://www.rfc-editor.org/rfc/rfc2616#section-3.6.1" rel="nofollow noreferrer">HTTP 1.1 spec</a>,</p>
  <blockquote>
  <p>All HTTP/1.1 applications MUST be able to receive and decode the &quot;chunked&quot; transfer-coding</p>
  </blockquote>
  <p>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.</p>
  <p>When I try the same thing against Apache, I get a &quot;411 Length required&quot; status and a message saying &quot;chunked Transfer-Encoding forbidden&quot;.</p>
  <p>Why do these servers not support this encoding?</p>