IIS7 refuses chunked-encoded file upload

大城市里の小女人 提交于 2019-12-05 11:41:07

According to HTTP 1.1 spec, chunked encoding is defined as server encoding - i.e. server sending response in such encoding, not the other way around (Wiki page also says the same). There is no mention of Server accepting a chunked encoded request, hence it is not implemented in IIS.

Having said that, it seems that APACHE has implemented this while being outside HTTP spec.

IIS 7 (at least IIS 7.5) does support chuncked file uploads. When the chunk length is wrong IIS returns an Http error 400: There is an invalid content length or chunk length in the request. (for example replace when adding

5 
hello 

with

5
h ello 

The problem lies in the transfer of the CGI call from IIS to PHP. IIS does not seem to be the only environment for which PHP as (Fast)CGI cannot deal with chunked file-uploads. See PHP-Bugs ID 60826

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!