开发者

How to detect BlackBerry Model in ASP.NET

Is there a way to detect BlackBerry Model in asp.net,

I have made some search on the net but i have not find a solution

I try to use userAgent information , but it seem's that the format change from one version to another,

for exemple for BlackBerry 8900 , Request.UserAgent = "BlackBerry8900/5.0.0.681 Profile/MIDP-2.1 Configuration/CLDC-1.1 Ve开发者_Python百科ndorID/-1"

for BlackBerry Torche : Request.UserAgent = "Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en-GB) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.141 Mobile Safari/534.1+"

Thank's in advance for your Help


It seems like you have your answer. To detect the various models, just parse the user agent field.

Note that a lot of times just the simple fact that the format changed is indicative of a different model. This is called "finger printing".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜