$UserAgentString

$UserAgentString

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

Details

  • 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.

Examples

Basic Examples  (1)

Deploy an API function that returns the user agent string:

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

Wolfram Research (2014), $UserAgentString, Wolfram Language function, https://reference.wolfram.com/language/ref/$UserAgentString.html.

Text

Wolfram Research (2014), $UserAgentString, Wolfram Language function, https://reference.wolfram.com/language/ref/$UserAgentString.html.

CMS

Wolfram Language. 2014. "$UserAgentString." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$UserAgentString.html.

APA

Wolfram Language. (2014). $UserAgentString. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$UserAgentString.html

BibTeX

@misc{reference.wolfram_2024_$useragentstring, author="Wolfram Research", title="{$UserAgentString}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/$UserAgentString.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$useragentstring, organization={Wolfram Research}, title={$UserAgentString}, year={2014}, url={https://reference.wolfram.com/language/ref/$UserAgentString.html}, note=[Accessed: 21-November-2024 ]}