为什么Chrome和IE浏览器把" Mozilla的5.0"在用户代理它们发送到服务器? [英] Why do Chrome and IE put "Mozilla 5.0" in the User-Agent they send to the server?

查看:279
本文介绍了为什么Chrome和IE浏览器把" Mozilla的5.0"在用户代理它们发送到服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我自己发送许多请求到服务器,发现小东西惊人的,

When i myself send many request to the server and found a little thing amazing that

在IE浏览器,如果我选择Opera的用户字符串,用户字符串的值

in IE if i choose opera user string that the value of user string was

User-Agent  Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.00

但如果我选择Internet Explorer中,他提出的Mozilla 5.0的用户字符串第一个其他浏览。

but if i choose other browser in internet explorer that he put Mozilla 5.0 in the user string first.

当我送从铬Ajax请求,我发现,他们把同样的东西用户字符串

when i send the ajax request from chrome that i found same thing that they put user string

Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.20 (KHTML, like Gecko) Chrome/11.0.672.2 Safari/534.20

我发现,Mozilla是组织谷歌和微软没有关系。 prehaps他是这两个竞争对手。为什么MSFT并在他们的用户代理谷歌都放Mozilla浏览器。任何理由把Mozilla浏览器在连接字符串。

i found that Mozilla is organization no matter for Google and Microsoft. prehaps he was competitor for both. Why MSFT and google both put mozilla in their user agent. any reason for putting mozilla in connection string.

为什么Chrome和IE都放Mozilla的在userstirng当他们发送请求。我不是知道为什么,但对于任何具体原因。

Why chrome and IE both put mozilla in userstirng when they send the request. i am not know why but any specific reason for that.

推荐答案

请参阅:用户代理,与字符串历史

这一切都可以追溯到浏览器嗅探并确保浏览器不从得到他们支持的内容被阻止。从上述文章中:

It all goes back to browser sniffing and making sure that the browsers are not blocked from getting content they can support. From the above article:

和Internet Explorer支持框架,但不是Mozilla的,所以没有给出帧。而微软变得不耐烦,不希望等待网站管理员学习IE,并开始将它传送帧,也因此Internet Explorer宣布,它是Mozilla的兼容,并开始假冒的Netscape,并呼吁自己的Mozilla / 1.22(兼容; MSIE 2.0; Windows 95中),和Internet Explorer接收帧,并且所有微软很高兴,但站长们被搞糊涂

And Internet Explorer supported frames, and yet was not Mozilla, and so was not given frames. And Microsoft grew impatient, and did not wish to wait for webmasters to learn of IE and begin to send it frames, and so Internet Explorer declared that it was "Mozilla compatible" and began to impersonate Netscape, and called itself Mozilla/1.22 (compatible; MSIE 2.0; Windows 95), and Internet Explorer received frames, and all of Microsoft was happy, but webmasters were confused.

这篇关于为什么Chrome和IE浏览器把" Mozilla的5.0"在用户代理它们发送到服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆