今天做項目,遇到了奇怪的問題。通過ajax請求ashx文件,本來很簡單的問題,就是簡單json格式數(shù)據(jù),在非IE系瀏覽器里面一切正常,在IE系瀏覽器下面間隔出現(xiàn)返回異常。通過一下午Fiddler跟蹤,測試,發(fā)現(xiàn)利用IEuser-agent發(fā)出的Post請求,如果帶了參數(shù),就會間隔性的出現(xiàn)異常,得不到Response.下面是我測試的Post頭x-requested-with: XMLHttpRequestAccept-Language: zh-cnReferer: http://local:1801/friend/welcome.aspxAccept: text/plain, */*Content-Type: application/x-www-form-urlencodedUA-CPU: x86Accept-Encoding: gzip, deflateUser-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; CIBA; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Zii Meet)Host: local:1185Content-Length: 5Connection: Keep-AlivePragma: no-cache body:top=9handler頁面為了測試,我什么邏輯都沒做不知道大家遇到過這樣的情況了嗎?我用IE6的User-Agent做測試,也是一樣的情況
- 2 回答
- 0 關(guān)注
- 660 瀏覽
添加回答
舉報
0/150
提交
取消