使用restlet将json内容传递到不同的浏览器类型

发布于 2024-07-15 06:27:17 字数 394 浏览 3 评论 0原文

我们使用 restlet 框架开发了 RESTful Web 服务。 该服务由使用 Prototype 和/或 Scriptaculous 的 ajax 请求调用(我对这些库不熟悉,所以如果提到的任何一个不准确,请原谅)。

一切似乎都适用于大多数流行的浏览器,即 Opera、Firefox、Safari 都工作正常。 只有 Internet Explorer(6 和 7)不会从调用中获取数据。

我们怀疑返回的内容类型“application/json”在 IE 中不起作用。 我们以“UTF-8”传递json内容,因此这也可能是一个问题。

欢迎任何提示和建议,提前致谢!

We have developed a RESTful webservice using the restlet framework. The service is called by ajax requests using Prototype and/or Scriptaculous (I'm not familiar with those libraries, so excuse if any of these mentioned are not accurate).

Everything seems to work for most of the popular browsers, i.e. Opera, Firefox, Safari all work fine. Only Internet Explorer (6 and 7) does not get data from the call.

Our suspicion is that the returned content type "application/json" does not work in IE. We deliver the json content in "UTF-8", so that may also be a problem.

Any hints and suggestions are welcome, thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黑寡妇 2024-07-22 06:27:17

IE 6 8 使用“application/json”处理 JSON 响应没有任何问题。 您需要使用 HttpWatch Pro 等工具来跟踪服务器的响应。

IE 6 8 handles JSON responses with "application/json" without any problems. You need to trace server's response using such tool as HttpWatch Pro for example.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文