asp.net开发wap程序必备:识别来访手机品牌型号

2008-02-22 09:31:28来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

我们在开发wap应用程序需要有识别来访手机品牌型号的功能,这样才可以更好的为用户提供更好的个性化服务,比如图片类型、屏幕尺寸、铃声类型等。

http协议中,User-Agent这个标头指示的浏览器信息,文章最后附加了常见的手机User-Agent.

每个厂家,甚至一个厂家多个品牌的User-Agent都没有一个统一命名标准,所以处理起来相当麻烦---不停的if。

比如判断某个手机的品牌

If Request.UserAgent.ToUpper.StartsWith("MOT") Or Request.UserAgent.ToUpper.StartsWith("MOT") Then
'摩托罗拉
End If
If Me.Request.UserAgent.ToUpper.IndexOf("-SGH") > 0 Then
'三星
End If

判断型号的话方法同上。

这样处理也有一些例外,比如摩托罗拉E360 会识别成T33这个是厂商的问题了。。

常见手机User-Agent:
Log_Brand Log_module Log_Ua
Arima Arima 2860 Profile/MIDP-2.0 Configuration/CLDC-1.1
CECT A706 CECT A706
CECT E818 CECT-E818/(2004.07.01)SW2.0.0/WAP1.2 Profile/MIDP-2.0 Configuration/CLDC-1.1
CECT G3300 CECT G3300/UT_SAMMY_A_06.20/WAP1.2 Profile/MIDP-2.0 Configuration/CLDC-1.1
CECT M62 CECT-M62
CECT M72 CECT-M72
CECT S568 CECTs568/(2004.07.27)SW2.0.0/WAP1.2
CECT S857 CECT S857
CECT T586 CECTT586/(2004.11.30)1.0/WAP1.2.1 Profile
CECT T700 CECT_T700
CECT T868 CECT T868
Compal C8600 Compal-C8600/1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0
Compal CHASE898 Compal-CHASE898/1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0
Compal COMPA Compal-Compa/1.4 Profile/MIDP-1.0 Configuration/CLDC-1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0
Compal HZ8 Compal-HZ8/1.0 UP.Browser/6.2.2.7.c.1.101 (GUI) MMP/1.0
Compal I361 Compal- I361/1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0
Compal I368 Compal- I368/1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0
Compal SEVILLE Compal-Seville/1.4 UP.Browser/5.0.3.2 (GUI)
Compal TG762 Compal-TG762/1.0 UP.Browser/6.2.2.7 (GUI) MMP/1.0
Compal TG762D Compal-TG762D/1.0 UP.Browser/6.2.2.7.c.1.101 (GUI) MMP/1.0
Compal U8800 Compal-U8800/1.0 UP.Browser/6.2.2.7 (GUI) MMP/1.0
Compal U8800A Compal-U8800A/1.0 UP.Browser/6.2.2.7 (GUI) MMP/1.0
Compal U8810 Compal-U8810/1.0 UP.Browser/6.2.2.7.c.1.101 (GUI) MMP/1.0
Compal XG3C Compal-XG3C/1.0v UP.Browser/4.1.23c
Compal XG5 Compal-XG5/1.0v UP.Browser/4.1.23c
CTL 2.0 CONFIGURATION CTL/(2004.07.01)SW2.0.0/WAP1.2 Profile/MIDP-2.0 Configuration/CLDC-1.1
CTL ROCKET CTL-ROCKET/1.0/WAP1.2 Profile/MIDP-1.0 Configuration/CLDC-1.1
LG B2050 LG-B2050 MIC/WAP2.0 MIDP-2.0/CLDC-1.0
LG C1100 LG-C1100 MIC/WAP2.0 MIDP-2.0/CLDC-1.0
LG CU8080 LGE-CU8080/1.0 UP.Browser/4.1.26l
LG G1800 LG-G1800 MIC/WAP2.0 MIDP-2.0/CLDC-1.0
LG G210 LG-G210/SW100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0
LG G220 LG-G220/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0
LG G232 LG-G232/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0
LG G262 LG-G262/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0
LG G5200 LG-G5200 AU/4.10
LG G5600 LG-G5600 MIC/WAP2.0 MIDP-2.0/CLDC-1.0
LG G610 LG-G610 V100 AU/4.10 Profile/MIDP-1.0 Configuration/CLDC-1.0
LG G622 LG-G622/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0
LG G650 LG-G650 V100 AU/4.10 Profile/MIDP-1.0 Configuration/CLDC-1.0
LG G660 LG-G660/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0
LG G672 LG-G672/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0
LG G682 LG-G682 /V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0
LG G688 LG-G688 MIC/V100/WAP2.0 MIDP-2.0/CLDC-1.0
LG G7000 LG-G7000 AU/4.10
LG G7050 LG-G7050 UP.Browser/6.2.2 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0
LG G7100 LG-G7100 AU/4.10 Profile/MIDP-1.0 Configuration/CLDC-1.0
LG G7200 LG-G7200 UP.Browser/6.2.2 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0
LG G822 LG-G822/SW100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0
LG G850 LG-G850 V100 UP.Browser/6.2.2 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0
LG G920 LG-G920/V122/WAP2.0 Profile/MIDP-1.0 Configuration/CLDC-1.0
LG G922 LG-G922 Obigo/WAP2.0 MIDP-2.0/CLDC-1.1
LG G932 LG-G932 UP.Browser/6.2.3(GUI)MMP/1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
LG L1100 LG-L1100 UP.Browser/6.2.2 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0
LG T5100 LG-T5100 UP.Browser/6.2.3 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0
LG U8120 LG/U8120/v1.0
LG U8130 LG/U8130/v1.0
LG U8138 LG/U8138/v2.0
LG U8180 LG/U8180/v1.0
NEC DB7000 NEC-DB7000/1.0 UP.Browser/4.1.23c
NEC E232 NEC-E232/1.0 UP.Browser/6.2.2.4.d.1.102 (GUI) MMP/1.0
NEC N100 NEC-N100/0100/WAP1.2.1 Profile/MIDP-1.0 Configuration/CLDC-1.0
NEC N108 NEC-N108/0100/WAP1.2.1 Profile/MIDP-1.0 Configuration/CLDC-1.0
NEC N109 NEC-N109/0100/WAP1.2.1 Profile/MIDP-1.0 Configuration/CLDC-1.0
NEC N110 NEC-N110/0730MAWC/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 UP.Browser/6.1.0.7.8 (GUI) MMP/1.0
NEC N1101 NEC-N1101/(2005.02.18)1.0/WAP1.2.1 Profile
NEC N118 NEC-N118/1101MAWC/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 UP.Browser/6.1.0.7.8 (GUI) MMP/1.0
NEC N150 NEC-N150/(2004.12.1)SW3.0.0/WAP2.0
NEC N158 NEC-N158/(2004.12.30)SW4.0.0/WAP2.0

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:.net打包自动安装数据库

下一篇:用ashx动态生成文件