$UserAgentString

$UserAgentString

给出发起当前计算的来自 HTTP 请求的用户代理字符串.

更多信息

  • 如果当前计算不是由 HTTP 请求发起,$UserAgentStringNone.
  • $UserAgentString 不仅是为直接网页调用而设置,例如通过 API,还可以被发生在 Wolfram 云平台中的互动会话所使用.

范例

基本范例  (1)

部署一个返回用户代理字符串的 API 函数:

获取发起该请求的用户代理字符串:

Wolfram Research (2014),$UserAgentString,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$UserAgentString.html.

文本

Wolfram Research (2014),$UserAgentString,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$UserAgentString.html.

CMS

Wolfram 语言. 2014. "$UserAgentString." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/$UserAgentString.html.

APA

Wolfram 语言. (2014). $UserAgentString. Wolfram 语言与系统参考资料中心. 追溯自 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: 22-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: 22-November-2024 ]}