我们在开发wap应用程序需要有识别来访手机品牌型号的功能,这样才可以更好的为用户提供更好的个性化服务,比如图片类型、屏幕尺寸、铃声类型等。
http协议中,User-Agent这个标头指示的浏览器信息,文章最后附加了常见的手机User-Agent.
每个厂家,甚至一个厂家多个品牌的User-Agent都没有一个统一命名标准,所以处理起来相当麻烦---不停的if。
比如判断某个手机的品牌
IfRequest.UserAgent.ToUpper.StartsWith("MOT")OrRequest.UserAgent.ToUpper.StartsWith("MOT")Then
'摩托罗拉
EndIf
IfMe.Request.UserAgent.ToUpper.IndexOf("-SGH")>0Then
'三星
EndIf
判断型号的话方法同上。
这样处理也有一些例外,比如摩托罗拉E360会识别成T33这个是厂商的问题了。。
常见手机User-Agent:
Log_BrandLog_moduleLog_Ua
ArimaArima2860Profile/MIDP-2.0Configuration/CLDC-1.1
CECTA706CECTA706
CECTE818CECT-E818/(2004.07.01)SW2.0.0/WAP1.2Profile/MIDP-2.0Configuration/CLDC-1.1
CECTG3300CECTG3300/UT_SAMMY_A_06.20/WAP1.2Profile/MIDP-2.0Configuration/CLDC-1.1
CECTM62CECT-M62
CECTM72CECT-M72
CECTS568CECTs568/(2004.07.27)SW2.0.0/WAP1.2
CECTS857CECTS857
CECTT586CECTT586/(2004.11.30)1.0/WAP1.2.1Profile
CECTT700CECT_T700
CECTT868CECTT868
CompalC8600Compal-C8600/1.0UP.Browser/6.2.2.3(GUI)MMP/1.0
CompalCHASE898Compal-CHASE898/1.0UP.Browser/6.2.2.3(GUI)MMP/1.0
CompalCOMPACompal-Compa/1.4Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/6.2.2.3(GUI)MMP/1.0
CompalHZ8Compal-HZ8/1.0UP.Browser/6.2.2.7.c.1.101(GUI)MMP/1.0
CompalI361Compal-I361/1.0UP.Browser/6.2.2.3(GUI)MMP/1.0
CompalI368Compal-I368/1.0UP.Browser/6.2.2.3(GUI)MMP/1.0
CompalSEVILLECompal-Seville/1.4UP.Browser/5.0.3.2(GUI)
CompalTG762Compal-TG762/1.0UP.Browser/6.2.2.7(GUI)MMP/1.0
CompalTG762DCompal-TG762D/1.0UP.Browser/6.2.2.7.c.1.101(GUI)MMP/1.0
CompalU8800Compal-U8800/1.0UP.Browser/6.2.2.7(GUI)MMP/1.0
CompalU8800ACompal-U8800A/1.0UP.Browser/6.2.2.7(GUI)MMP/1.0
CompalU8810Compal-U8810/1.0UP.Browser/6.2.2.7.c.1.101(GUI)MMP/1.0
CompalXG3CCompal-XG3C/1.0vUP.Browser/4.1.23c
CompalXG5Compal-XG5/1.0vUP.Browser/4.1.23c
CTL2.0CONFIGURATIONCTL/(2004.07.01)SW2.0.0/WAP1.2Profile/MIDP-2.0Configuration/CLDC-1.1
CTLROCKETCTL-ROCKET/1.0/WAP1.2Profile/MIDP-1.0Configuration/CLDC-1.1
LGB2050LG-B2050MIC/WAP2.0MIDP-2.0/CLDC-1.0
LGC1100LG-C1100MIC/WAP2.0MIDP-2.0/CLDC-1.0
LGCU8080LGE-CU8080/1.0UP.Browser/4.1.26l
LGG1800LG-G1800MIC/WAP2.0MIDP-2.0/CLDC-1.0
LGG210LG-G210/SW100/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0
LGG220LG-G220/V100/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0
LGG232LG-G232/V100/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0
LGG262LG-G262/V100/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0
LGG5200LG-G5200AU/4.10
LGG5600LG-G5600MIC/WAP2.0MIDP-2.0/CLDC-1.0
LGG610LG-G610V100AU/4.10Profile/MIDP-1.0Configuration/CLDC-1.0
LGG622LG-G622/V100/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0
LGG650LG-G650V100AU/4.10Profile/MIDP-1.0Configuration/CLDC-1.0
LGG660LG-G660/V100/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0
LGG672LG-G672/V100/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0
LGG682LG-G682/V100/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0
LGG688LG-G688MIC/V100/WAP2.0MIDP-2.0/CLDC-1.0
LGG7000LG-G7000AU/4.10
LGG7050LG-G7050UP.Browser/6.2.2(GUI)MMP/1.0Profile/MIDP-1.0Configuration/CLDC-1.0
LGG7100LG-G7100AU/4.10Profile/MIDP-1.0Configuration/CLDC-1.0
LGG7200LG-G7200UP.Browser/6.2.2(GUI)MMP/1.0Profile/MIDP-1.0Configuration/CLDC-1.0
LGG822LG-G822/SW100/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0
LGG850LG-G850V100UP.Browser/6.2.2(GUI)MMP/1.0Profile/MIDP-1.0Configuration/CLDC-1.0
LGG920LG-G920/V122/WAP2.0Profile/MIDP-1.0Configuration/CLDC-1.0
LGG922LG-G922Obigo/WAP2.0MIDP-2.0/CLDC-1.1
LGG932LG-G932UP.Browser/6.2.3(GUI)MMP/1.0Profile/MIDP-2.0Configuration/CLDC-1.1
LGL1100LG-L1100UP.Browser/6.2.2(GUI)MMP/1.0Profile/MIDP-1.0Configuration/CLDC-1.0
LGT5100LG-T5100UP.Browser/6.2.3(GUI)MMP/1.0Profile/MIDP-1.0Configuration/CLDC-1.0
LGU8120LG/U8120/v1.0
LGU8130LG/U8130/v1.0
LGU8138LG/U8138/v2.0
LGU8180LG/U8180/v1.0
NECDB7000NEC-DB7000/1.0UP.Browser/4.1.23c
NECE232NEC-E232/1.0UP.Browser/6.2.2.4.d.1.102(GUI)MMP/1.0
NECN100NEC-N100/0100/WAP1.2.1Profile/MIDP-1.0Configuration/CLDC-1.0
NECN108NEC-N108/0100/WAP1.2.1Profile/MIDP-1.0Configuration/CLDC-1.0
NECN109NEC-N109/0100/WAP1.2.1Profile/MIDP-1.0Configuration/CLDC-1.0
NECN110NEC-N110/0730MAWC/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0UP.Browser/6.1.0.7.8(GUI)MMP/1.0
NECN1101NEC-N1101/(2005.02.18)1.0/WAP1.2.1Profile
NECN118NEC-N118/1101MAWC/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0UP.Browser/6.1.0.7.8(GUI)MMP/1.0
NECN150NEC-N150/(2004.12.1)SW3.0.0/WAP2.0
NECN158NEC-N158/(2004.12.30)SW4.0.0/WAP2.0
NECN166NEC-N166/(2005.2.21)0100/WAP1.2.1Profile
NECN170NEC-N170/(2005.2.1)SW3.0.0/WAP2.0
NECN190NEC-N190/REV2.2.2/WAP1.2.1Profile
NECN200NEC-N200/REV2.2.2/WAP1.2.1Profile
NECN500NEC-N500/REV2.2.1/WAP1.2.1Profile
NECN600NEC-N600/1.0HopenOS/2.0
NECN610NEC-N610/1.0
NECN620NEC-N620/1.0HopenOS/2.0Profile/MIDP-2.0Configuration/CLDC-1.0
NECN700NEC-N700/1.0UP.Browser/6.2.2.4.d.1.102(GUI)MMP/1.0
NECN710NEC-N710/1.0UP.Browser/6.2.2.6.e.1.101(GUI)MMP/1.0
NECN718NEC-N718/1.0UP.Browser/6.2.2.6.e.1.101(GUI)MMP/1.0
NECN720NEC-N720/2004AJCC/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0UP.Browser/6.2.3.2.g.1.106(GUI)MM
NECN728NEC-N728/2004AJCC/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0UP.Browser/6.2.3.2.g.1.106(GUI)MM
NECN730NEC-N730/(2004.12.27)1.0/WAP1.2.1Profile
NECN738NEC-N738/(2004.12.27)1.0/WAP1.2.1Profile
NECN8NEC-N8/1.0UP.Browser/6.1.0.5(GUI)MMP/1.0
NECN800NEC-N800/1.0(4.74)Profile/MIDP-2.0Configuration/CLDC-1.1
NECN810NEC-N810/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/6.1.0.6.1.f.2(GUI)MMP/1.0
NECN820NEC-N820/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/6.2.2.6.e.1.101(GUI)MMP/1.0
NECN830NEC-N830/1.0UP.Browser/6.2.2.6.e.1.101(GUI)MMP/1.0
NECN840NEC-N840/(2004.12.20)DJCC/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0UP.Browser/6.2.3.2.g.1.108
NECN900NEC-N900/1.0UP.Browser/6.2.2.6.e.1.101(GUI)MMP/1.0
NECN910NEC-N910/1.0
NECN917NEC-N917/REV2.2.1/WAP1.2.1Profile
NECN919NEC-N919/REV2.2.1/WAP1.2.1Profile
NECN920NEC-N920/(2004.11.15)1.0/WAP1.2.1Profile
NECN930NEC-N930/(2004.01.05)SW2.60/WAP1.2.1Profile/MIDP-1.0Configuration/CLDC-1.0
NECN940NEC-N940/(2005.01.07)SW1.40/WAP1.2.1Profile/MIDP-2.0Configuration/CLDC-1.0
TCL3188CTCL-3188C
TCL3199TCL-3199
TCL718TCL-718
TCL728TCL-728
TCL758TCL-758/SW-08.03.01/WAP-1.2.1Profile/MIDP-1.0Configuration/CLDC-1.0
TCL766TCL-766/W05.12/WAP-1.2.1
TCL782TCL-782/W05.12/WAP-1.2.1
TCL818TCL-818
TCLE737TCL-e737/401/WAP-2.0/MIDP-1.0/CLDC-1.0
TCLE767TCL-E767/OC02-1-1.58-0618/WWW/MIDP-1.0Configuration/CLDC-1.0
TCLI919TCL-i919
TCLI939TCL-i939
TCLMOBO808TCLMobo808
TCLMOBO858TCL-MOBO858/340/wap2.0/MIDP1.0/CLDC1.0
TCLMOBO896TCL-MOBO896/383/WAP-2.0/MIDP-1.0/CLDC-1.0
TCLMOBO898TCL-MOBO898/361/WAP-2.0/MIDP-1.0/CLDC-1.0
TCLMOBO899TCL-MOBO899/391/WAP-2.0/MIDP-1.0/CLDC-1.0
TCLQ550TCL-Q550
TCLU106TCL-U106/SW-16.03.01/WAP-1.2.1Profile/MIDP-1.0Configuration/CLDC-1.0
TCLU2TCLU2
TCLU8TCL-U8
TDG9920TDG-9920
阿尔卡特BG3Alcatel-BG3/1.0UP.Browser/5.0.3.3.11
阿尔卡特BG3-colorAlcatel-BG3-color/1.0UP.Browser/5.0.3.3.11
阿尔卡特BH4Alcatel-BH4/1.0UP.Browser/6.2.ALCATELMMP/1.0
阿尔卡特BH4RAlcatel-BH4R/1.0UP.Browser/6.2.ALCATELMMP/1.0
阿尔卡特CTH3Alcatel-CTH3/1.0UP.Browser/6.2.ALCATELMMP/1.0
阿尔卡特OH2Alcatel-OH2/1.0ObigoInternetBrowser/2.0
阿尔卡特OH5Alcatel-OH5/1.0UP.Browser/6.1.0.7.7(GUI)MMP/1.0
阿尔卡特OT557Alcatel-OT557/1.0UP.Browser/6.2.ALCATELMMP/1.0
阿尔卡特TH3Alcatel-TH3/1.0UP.Browser/6.2.ALCATELMMP/1.0
阿尔卡特TH4Alcatel-TH4/1.0UP.Browser/6.2.ALCATELMMP/1.0
爱立信EricssonMobilePlatforms(UCWEB4.0A)
爱立信t39EricssonT39/R201
爱立信t68EricssonT68/R101
波导A120BIRD.A120AU.Browser/1.2.1
波导A150BIRD.A150wxd.Mms/0311.20
波导D200BirdD200/1.00/WAP2.0/MIDP1.0/CLDC1.0UP.Browser/6.1.0.7.7(GUI)MMP/1.0
波导DV10BIRD-DV10/E-G_C_2.2.1.1_RMIB/1.2.1Profile/MIDP-1.0Configuration/CLDC-1.0
波导E859BIRD.E859/0.0.09/1.2
波导E860BIRD.E860/0.0.06/1.2
波导E868BIRD.E868WxdB.Browser/2k306.1
波导E898BIRD.E898WxdB.Browser/2k405.1
波导G118BIRD.G118MO130m-128x160/1.1UP.Browser/6.1.0.6.1.c.4(GUI)MMP/1.0
波导S310BIRD.S310MO130m-128x128/1.1UP.Browser/6.1.0.6.1.c.4(GUI)MMP/1.0
波导S570Bird-S570/6.1.0.7UP.Browser/6.1.0.7.8.c.1.100(GUI)MMP/1.0
波导S580BIRD.S580/3.03/WAP1.2.1
波导S689Bird.S689/K03,MI/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.0UP.Browser/6.2.2.6.d.3.100(GUI)MMP
波导S789+Bird.S789+/KQ3,U01/WAP2.0/MIDP-2.0/CLDC-1.0Profile/MIDP-2.0Configuration/CLDC-1.0UP.Browser/6.2.2
波导S889Bird.S889/JL3,BV/WAP2.0UP.Browser/6.2.2.5.d.3(GUI)MMP/1.0
波导SC17CBird.SC17C/KN,U04/WAP2.0/MIDP-2.0/CLDC-1.0Profile/MIDP-2.0Configuration/CLDC-1.0UP.Browser/6.2.2.
波导SM10Bird.SM10/KQ3,LB/WAP1.2.1UP.Browser/6.1.0.6.1.c.4(GUI)MMP/1.0
波导V10BIRD.V10AU.Browser/1.2.1
波导V59BIRD.V59MASV3-128x160/1.1UP.Browser/6.1.0.6.1.c.4(GUI)MMP/1.0
波导V89Bird.V89/KK3,LA/WAP1.2.1UP.Browser/6.1.0.6.1.c.4(GUI)MMP/1.0
波导X8Bird-X8/K23,PM/WAP2.0/MIDP-2.0/CLDC-1.0UP.Browser/6.2.3.3.g.1(GUI)MMP/2.0
大显5208Daxian5208
大显D2600DAXIAND2600
大显D6310DAXIAN-D6310UP.Browser/5.0.3.1
大显D6600DAXIAN_D6600
大显D7199DAXIAN_D7199CLDC/CLDC-1.0MIDP/MIDP-1.0
大显D8000Daxian-D8000CLDC/CLDC-1.0MIDP/MIDP-1.0
迪比特6228DBTEL/6228MIDP/MIDP-1.0CLDC/CLDC-1.0UP.Browser/5.0.3.5
迪比特6568DBTEL6568/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特6588CDBTEL6588C/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特6668DBTEL-6668Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特8036DBTEL/8036Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特8038DBTEL-8038Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特D5DBTELD5/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特DB2039DBTEL-DB2039/3.11UP.Browser/5.0.3.1
迪比特J1DBTELJ1/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特J6DBTELJ6/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特J7DBTELJ7/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特J9DBTELJ9/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
迪比特T302DBTELT302/1.0Profile/MIDP-1.0Configuration/CLDC-1.0UP.Browser/5.0.3.5
东信7SERIESEastcom_7series
东信EG830Eastcom_EG830
东信EG835Eastcom_EG835
东信ES1008EASTCOM-ES1008/(2004.09.13)SW02/WAP1.2.1Profile/MIDP-1.0Configuration/CLDC-1.0
东信ES1008AEASTCOM-ES1008A/(2005.03.13)SW02/WAP1.2.1Profile/MIDP-1.0Configuration/CLDC-1.0
东信ES1009EASTCOM-ES1009/(2005.05.10)SW02/WAP2.0Profile/MIDP-1.0Configuration/CLDC-1.0
多彩1.0PANTECH_G670/(2005.04.26)Ver1.0CLDC/CLDC-1.0MIDP/MIDP-1.0
多彩3000PANTECH_PG-3000/(2005.04.26)Ver1.00/WAP2.0Profile/MIDP-2.0Configuration/CLDC-1.1
多彩3200PANTECH_PG-3200/R01Profile/MIDP-2.0Configuration/CLDC-1.1
多彩G500PANTECHG500
多彩GPM500PANTECHGPM500
多彩GPM700PANTECHGPM700
多彩TP100PANTECHTP100
多普达535Dopod535Mozilla/4.0(compatible;MSIE4.01;WindowsCE;Smartphone;176x220)
多普达565Dopod565Mozilla/4.0(compatible;MSIE4.01;WindowsCE;Smartphone;176x220)
多普达585Dopod585/4.21.1088/WAP1.2Profile/MIDP2.0Configuration/CLDC1.0/Mozilla/4.0(compatible;MSIE4.01;
多普达696Dopod696Mozilla/4.0(compatible;MSIE4.01;WindowsCE;PPC;240x320)
多普达818Dopod818/4.21.1088/WAP1.2Profile/MIDP2.0Configuration/CLDC1.0Mozilla/4.0(compatible;MSIE4.01;
多普达828Dopod828/4.21.1088/WAP1.2Profile/MIDP2.0Configuration/CLDC1.0Mozilla/4.0(compatible;MSIE4.01;
飞利浦350PHILIPS350/ObigoInternetBrowser2.0
飞利浦355PHILIPS355/ObigoInternetBrowser2.2
飞利浦530PHILIPS530/ObigoInternetBrowser2.0
飞利浦535PHILIPS535/ObigoInternetBrowser2.0
飞利浦568PHILIPS568/1.0UP.Browser/6.1.0.7.8(GUI)MMP/1.0
飞利浦639PHILIPS639/ObigoInternetBrowser2.0
飞利浦650PHILIPS650ObigoInternetBrowser/2.0
飞利浦655PHILIPS655ObigoInternetBrowser/2.0
飞利浦660PHILIPS660ObigoInternetBrowser/2.0
飞利浦755PHILIPS755ObigoInternetBrowser/2.0
飞利浦760PHILIPS760ObigoInternetBrowser/2.0
飞利浦766PHILIPS766IACWAPBrowser1.2
飞利浦855PHILIPS855ObigoInternetBrowser/2.0
飞利浦859PHILIPS859ObigoInternetBrowser/2.0
飞利浦FISIO330PHILIPS-FISIO330/3.14UP.Browser/5.0.3.5(GUI)
飞利浦FISIO620PHILIPS-FISIO620/3.14UP.Browser/5.0.1.11
飞利浦FISIO820PHILIPS-FISIO820/3.14UP.Browser/5.0.1.11
飞利浦FISIO826PHILIPS-FISIO826/3.14UP.Browser/5.0.3.5(GUI)
飞利浦SYSOL2PHILIPS-SYSOL2/3.11UP.Browser/5.0.1.11
飞利浦SYSOL3PHILIPS-SYSOL3/3.11UP.Browser/5.0.1.11
飞利浦