简体   繁体   English

如何在ASP.NET中检测BlackBerry Model

[英]How to detect BlackBerry Model in ASP.NET

Is there a way to detect BlackBerry Model in asp.net, 有没有办法在asp.net中检测BlackBerry Model,

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, 我尝试使用userAgent信息,但似乎格式从一个版本更改为另一个版本,

for exemple for BlackBerry 8900 , Request.UserAgent = "BlackBerry8900/5.0.0.681 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/-1" 例如BlackBerry 8900,Request.UserAgent =“ BlackBerry8900 / 5.0.0.681 Profile / MIDP-2.1 Configuration / CLDC-1.1 VendorID / -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+" 对于BlackBerry Torche:Request.UserAgent =“ Mozilla / 5.0(BlackBerry; U; BlackBerry 9800; en-GB)AppleWebKit / 534.1 +(KHTML,如Gecko)版本/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". 这被称为“指印”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM