Asp.net required for wap Program Development: Identify the brand model of the visiting mobile phone

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.