In the development of wap applications, we need to have the function of identifying the brand models of visiting mobile phones so that we can better provide users with better personalized services, such as the chip type, screen size, and ringtone type.
In the http protocol, the browser information indicated by the User-Agent header is appended to the article.
There is no uniform Naming Standard for the User-Agent of each manufacturer or even multiple brands of the same manufacturer, so it is quite troublesome to handle it-non-stop if.
For example, judging the brand of a mobile phone
If Request. UserAgent. ToUpper. StartsWith ("MOT") Or Request. UserAgent. ToUpper. StartsWith ("MOT") Then
'Motorola
End If
If Me. Request. UserAgent. ToUpper. IndexOf ("-SGH")> 0 Then
'Samsung
End If
The Method for Determining the model is the same as that for determining the model.
There are some exceptions in this way. For example, the Motorola E360 will recognize T33 as a vendor issue ..
Common mobile phone User-Agent:
Log_Brand Log_module Log_Ua
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 CECT-M62 M62
CECT CECT-M72 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