日期:2014-05-16  浏览次数:21246 次

II5和II6POST 请求的问题
我做了客户端用socket连接IIS服务,请求数据如下
"POST http://114.249.236.197/test/(S(ffvu1vui51vt4hjevawwr255))/TextBuilder.ashx?Auc_SessionID=ffvu1vui51vt4hjevawwr255 HTTP/1.1
Accept:*/*
Host:114.249.236.197
Content-length: 56
Connection:Keep-Alive
Cache-Control: no-cache


IIS5.0下正常,但IIS6.0服务器恢复如下:
"HTTP/1.1 400 Bad Request
Connection: close
Date: Fri, 22 Oct 2010 14:26:14 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Type: text/html; charset=utf-8

<html><body>Bad Request</body></html>"
那位大侠帮我看看什么问题?

------解决方案--------------------
我遇到过这种问题:
1.确认/TextBuilder.ashx文件存在
2.你POST数据要附加在最后,我没看见你的数据
3.Content-length字段必须是你POST的数据的长度,必须正确