问题
I'm trying to find out what is the user agent of Samsung Galaxy S3.
I don't have the device so I can't test myself. The user agent is going to be recognized by my web server.
回答1:
Mozilla/5.0 (Linux; U; Android 4.0.4; en-gb; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
回答2:
http://en.wikipedia.org/wiki/Samsung_Galaxy_S_III
this page contains all model number for s3 across all countries one can search for user string for all such models.
回答3:
What's My User Agent? is a great tool for figuring out what the User Agent of your current browser is. Just navigate to it in the browser of whatever device you want the UA for.
If you don't have the device you want to test, that site also has a section for Common User Agents. Once you figure out the UA you want to test, you can use the User Agent-Switcher for Chrome plug-in to have Chrome mimic that UA.
Full Disclosure: I don't work for or know the people who have created these tools, just figured I'd share some of the tools I use with the community : )
回答4:
- There's no such thing as the user agent for a specific device.
- The user agent depends on the client (e.g. a web browser) being used to access the web server
- The user agent also differs according to the running version of Android
- You need to at least look for the user agent string for a specific browser (e.g. the default Android browser, or Chrome)
- Also, apps in Android each run within their own VM, which is called 'Dalvik'. A Dalvik user agent string can be reported within an http header in some instances.
来源:https://stackoverflow.com/questions/11282944/what-is-the-samsung-s3-user-agent