User agent: Difference between revisions

Jump to navigation Jump to search
174 bytes added ,  24 September 2013
not trustworthy
(not trustworthy)
Line 1: Line 1:
'''User Agent''' string is a string which is visible in the HTTP headers of an HTTP client and in the navigator.userAgent object JavaScript for JS enabled client.
'''User Agent''' string is a string which is visible in the HTTP headers of an HTTP client and in the navigator.userAgent object JavaScript for JS enabled client.
Never trust the user string to be accurate - many tablets and phones especially may mislead. To confirm the ability of the browser/platform use a specific test where available.


== HTTP ==
== HTTP ==
For example on Firefox OS devices.
For example on Firefox OS devices.
  User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0
  User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0


== Browsers with JavaScript ==
== Browsers with JavaScript ==
  var ua = navigator.userAgent;
  var ua = navigator.userAgent;


== Around this topic ==
== Around this topic ==
* [[UA/override|User Agent Override]]
* [[UA/override|User Agent Override]]
* [[Compatibility/UADetectionLibraries|User Agent Detection Libraries]]
* [[Compatibility/UADetectionLibraries|User Agent Detection Libraries]]
Account confirmers, Anti-spam team, canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,434

edits

Navigation menu