gives the user agent string from an HTTP request that initiated the current evaluation.


  • If the current evaluation was not initiated by an HTTP request, $UserAgentString is None.
  • $UserAgentString is set not only for direct web calls such as those through an API, but also for interactive sessions that occur in the Wolfram Cloud Platform.


Basic Examples  (1)

Deploy an API function that returns the user agent string:

Get the user agent string of the originator of this request:

Introduced in 2014