Why doesn't IIS support chunked transfer encoding?

前端 未结 5 1048
一个人的身影
一个人的身影 2021-02-09 04:49

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 conn

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-09 05:07

    My understanding is that chunked encoding can only be used in a HTTP response. A chunked request body would have the property of being incompatible with a 1.0 server, and in any case, there would be no way of a user-agent knowing that the server was a 1.0 server until it had already sent the request.

    But I agree it's unclear from the documentation.

提交回复
热议问题