Transfer-Encoding:Chunked cause 404系统找不到指定的文件

时间:2013-09-20 15:25:00

标签: asp.net iis iis-6 chunked-encoding chunked

我正在尝试发布到IIS6提供的页面,我正在添加以下标题:

Transfer-Encoding: chunked

当我执行此操作时,出现404错误:The system cannot find the file specified.。如果我向没有此标题的页面发出相同的请求,它肯定存在。

以下是标题 - 两个请求之间的唯一区别是分块...

POST http://hostname/appname/index.html HTTP/1.1
Host: hostname
Connection: keep-alive
Transfer-Encoding: chunked
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Content-Type: application/x-www-form-urlencoded
Referer: http://referrer/

身体:

4
xxxx
0

IIS元数据库在W3SVC级别将AspEnableChunkedEncoding设置为true,并且不会在站点级别覆盖它。

为什么我会收到404错误?

更新:我注意到对不成功请求的响应:

x-powered-by: asp.net

...标题缺席。我不知道这是否有帮助 - 如果我没有在请求中设置标题,它就在那里。

1 个答案:

答案 0 :(得分:1)

是否安装了URLScan?它可能会阻止标题