搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Why does a GET request from a REST server that returns JSON come in to FireFix 5.0 in XML format? Response comes in to IE8 and Chrome 13 correctly as JSON.

more options

My ExtJS 4.0 web site issues AJAX GET requests to a REST web service. The service responds in JSON format.

I get an error in FireFox when I attempt to access the JSON data from the response.

I don't get any errors in IE8 or Chrome 13.

Using Fiddler, I determined that the Response to the GET request displays as XML when the GET is issued from FireFox, but correctly appears as JSON when issued from IE8 or Chrome.

My ExtJS 4.0 web site issues AJAX GET requests to a REST web service. The service responds in JSON format. I get an error in FireFox when I attempt to access the JSON data from the response. I don't get any errors in IE8 or Chrome 13. Using Fiddler, I determined that the Response to the GET request displays as XML when the GET is issued from FireFox, but correctly appears as JSON when issued from IE8 or Chrome.

所有回复 (1)

more options

No idea, but if you view the ACCEPT headers in Fiddler, is Firefox specifying that it prefers different response types than IE8 or Chrome 13?