I'm trying to determine the user agent string for surface RT for testing purposes.
相关问题
- ListView in a metro app does not get its vertical
- vbscript is not working on IE10 browser mode
- cant use store test kit while Working with SQLite
- Windows 8 app (html & Javascript) : alternate way
- Windows 8 WPF progress bars don't have glow an
相关文章
- Is a unicode user agent legal inside an HTTP heade
- is there a “rails” way to redirect if mobile brows
- how to parse user agent string? python
- New Windows Application - What language?
- Flexbox in IE10
- libxml2 missing for nokogiri gem on Windows 8 x64
- Building Windows 8 Metro App on Windows 7 with Vis
- Windows 8 & MySQL? What are my options?
This is what I get when I visit the whatsmyuseragent site:
Hope this helps.
I went to a Microsoft retail location yesterday (November 13, 2012) and used IE to browse to http://whatsmyuseragent.com/ in both Metro and Desktop modes.
Here is the user agent given in both cases:
surface RT will run only IE 10. The User Agent string is
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; ARM; Trident/6.0)
(source: this MSDN blog entry)
This type of information is typically published well in advance of the delivery of the underlying browsers / machines, because of the interest Web Browser manufacturers have in seeing the new browsers well supported by most Web Sites.
UserAgent for devices -
IE desktop - "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3; rv:11.0) like Gecko"
IE Surface Pro - "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; .NET4.0C; .NET4.0E; Tablet PC 2.0; rv 11.0) like Gecko"
Edge desktop - "Mozilla/5.0 (Windows NT 10.0; Win64; x64; ServiceUI 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063"
Edge surface - "Mozilla/5.0 (Windows NT 10.0; Win64; x64; ServiceUI 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"
By looking at the above user agents we don't have any clear distinguish between desktop and surface pro for Edge(IE is having Tablet PC check available ). So here to detect the window device first(surface pro is window tablet) and then verify if the device is touch device.
window + touch: true - surface pro
window + touch: false - desktop
Just do some Google'ing and you will find your answer.
Internet Explorer 10 User-agent string
Update after comment below
The link above also states:
Update for Internet Explorer 11
User-agent string changes
Here is what's reported for Internet Explorer 11 on Windows 8.1:
Here is the string for Internet Explorer 11 on Windows 7:
If you compare these values to those reported by earlier versions of Internet Explorer, you'll find the following changes:
For those interested. Here is the User Agent string for a Surface Pro (128Gb):