这是从服务器所产生的原始响应(使用Fiddler2)为什么的Internet Explorer(8)认为这是XML
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/plain; charset=utf-8
Server: Microsoft-IIS/7.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
MicrosoftOfficeWebServer: 5.0_Pub
MS-Author-Via: MS-FP/4.0
Date: Fri, 10 Dec 2010 18:19:18 GMT
Content-Length: 594
Contents of 24194_XXXXXXXXXX.log as of 10/12/2010 19:19:18
w3wp.exe Information: 0 : START: New Alarm [9]
w3wp.exe Information: 0 : 12/10/2010 19:14:56 - <?xml version="1.0"?>
<CALLS>
<CALL>
<CALL_ID>9_1</CALL_ID>
<BODY>004|007|015|058|1_ToConfirm|2_ToDecline</BODY>
<LANGID>321</LANGID>
<TO1>99999999999</TO1>
<TO2 />
</CALL>
</CALLS>
w3wp.exe Information: 0 : END: New Alarm [9]
w3wp.exe Information: 0 : 12/10/2010 19:15:30 - <RESULT><CALL_ID>9_1</CALL_ID><CALLRESULT1>0</CALLRESULT1><DTMF1>2</DTMF1><CALLRESULT2></CALLRESULT2><DTMF2></DTMF2></RESULT>
在我的asp.net IHttpHandler
我已经设置
context.Response.ContentType = "text/plain";
它明确返回。在IE8我能看到这一点:
当我尝试目标另存为...我得到这个(注意保存类型:):
我想这只是因为IE决定不服从给定的内容类型,而是这个开始解析内容,发现XML头,就是这样。为什么IE浏览器突然表现得像是写了一些奇特的标准:-)? – eckes 2010-12-10 18:43:47
我尽量做到了;-) – Rudi 2010-12-10 21:27:34