[转]手机浏览器的User-Agent汇总

手机浏览器的User-Agent汇总

之前介绍的 更简洁的方式修改Chrome的User Agent,轻松体验移动版网络这种简洁的方法好像只适用于Chrome, Chrome不只是浏览界面简洁,对应的细节功能也都设计的很简洁。但是如果想在Chrome之外的浏览器平台模拟移动设备,还是需要使用完整的User Agent。比如我有时会用电脑通过3G网络上网,在流量上就要尽量节省了,目前是使用的Opera开启Turbo模式,节省流量方面还不错。如果模拟成移动平台的话,应该能更节省流量。顺便试了下模拟不同移动平台上网的效果,这里收集几个手机浏览器的User Agent备用,以后使用可以直接拿来复制即可。

不太了解User Agent的童鞋可以看下 User Agent百度百科.

以下是今天收集到的几个移动平台浏览器的User Agent:

Android N1

Mozilla/5.0 (Linux; U; Android 2.3.7; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

Android QQ浏览器 For android

MQQBrowser/26 Mozilla/5.0 (Linux; U; Android 2.3.7; zh-cn; MB200 Build/GRJ22; CyanogenMod-7) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

Android UC For android

JUC (Linux; U; 2.3.7; zh-cn; MB200; 320*480) UCWEB7.9.3.103/139/999

备注: 320*480 是设备的分辨率,可以修改.

Android Firefox手机版Fennec

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110623 Firefox/7.0a1 Fennec/7.0a1

Android Opera Mobile

Opera/9.80 (Android 2.3.4; Linux; Opera Mobi/build-1107180945; U; en-GB) Presto/2.8.149 Version/11.10
Android Pad Moto Xoom

Mozilla/5.0 (Linux; U; Android 3.0; en-us; Xoom Build/HRI39) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
iPhone3

Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/1A542a Safari/419.3
iPhone4

Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7
iPad

Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10
BlackBerry

Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.337 Mobile Safari/534.1+
WebOS HP Touchpad

Mozilla/5.0 (hp-tablet; Linux; hpwOS/3.0.0; U; en-US) AppleWebKit/534.6 (KHTML, like Gecko) wOSBrowser/233.70 Safari/534.6 TouchPad/1.0
Nokia N97

Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/20.0.019; Profile/MIDP-2.1 Configuration/CLDC-1.1) AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.1.18124
Windows Phone Mango

Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; HTC; Titan)
Windows Phone Mango的User Agent格式为:Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0;厂商;型号[;运营商])

上边是收集到的常见的手机系统User Agent. Android, iOS, Backerry, WebOS, Symbian, Windows Phone都有了, 以后需要模拟移动平台上网玩的话,直接复制对应设备的User Agent修改浏览器就可以了.

附录:

ASP/.NET/PHP获取浏览器User-Agent的实现方法:
.NET 获取 User Agent
string ua = Request.UserAgent;
// 或
// string ua = Request.ServerVariables["HTTP_USER_AGENT"];
// 或
// string ua = Request.Headers["User-Agent"];

ASP 获取 User Agent
ua = Request.ServerVariables("HTTP_USER_AGENT")

PHP 获取 User Agent
<?php
echo $_SERVER['HTTP_USER_AGENT'];
?>

        string userAgent = Request.UserAgent.ToLower();
if (userAgent.Contains("android") || userAgent.Contains("iphone") || userAgent.Contains("blackberry") || userAgent.Contains("nokia") || userAgent.Contains("windows phone"))
{
Response.Redirect("...");
}

  

上一篇:Android截屏的几种实现


下一篇:SSRS报表参数设置