HTTP_USER_AGENT和navigator.userAgent不一样,有什么想法吗?

时间:2012-02-01 22:16:40

标签: internet-explorer user-agent

我在客户端使用Javascript,获取navigator.userAgent,返回:

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; .NET4.0C; .NET4.0E)

使用C#Request.ServerVariables["HTTP_USER_AGENT"],返回:

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)

正如你所看到的,它的IE :(。

IE总是这样做,还是只是我? 如何获得相同的价值?

PS ,我甚至在本地IIS中试过这个,结果相同

0 个答案:

没有答案
相关问题