Windows 7 上的 IE7-8 - 奇怪的请求格式
有谁知道Windows 7下运行的IE的请求格式是怎么回事?
我正在运行一个 Rails 应用程序来检查 request.format。当访问类似 http://localhost 的网址时,网址中没有指定格式,我看到:
Firefox request.format是 'html'
IE7 和 IE8 在 Windows 7 Professional 下运行 request.format 是 'application/x-ms-application'
IE7 和 IE8 在 Windows 7 Ultimate 下运行 request.format 是 'jpg'
我无法理解它。还有其他人看到这个吗?
does anyone know what is up with the request formats from IE running under windows 7?
i'm running a rails app that is checking on request.format. when going to something like http://localhost where there is no format specified in the url, i'm seeing:
Firefox request.format is 'html'
IE7 and IE8 running under windows 7 professional request.format is 'application/x-ms-application'
IE7 and IE8 running under windows 7 ultimate request.format is 'jpg'
i can't make heads or tails of it. has anyone else seen this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我也遇到过这个问题。由于某种原因,IE 没有设置格式标头,在很多情况下它只是“*/*”(xp、vista)等。
Yep, I've come across this issue as well. For some reason the format header isn't being set by IE, in a lot of cases its simply '*/*' (xp, vista) etc.