userAgent
Type
property
Summary
The identifier sent by the browser when fetching content from remote URLs.
Syntax
set the userAgent of <widget> to <pUserAgent>
get the userAgent of <widget>
Description
The userAgent is the identifier sent by the browser when fetching content from remote HTTP servers.
The userAgent must conform to the requirements for the User-Agent
header described in the HTTP specification. See RFC 2616, section
14.43.
Examples
-- Set a custom User-Agent header. The remote web server may
-- be configured to deliver custom content for browsers using
-- this User-Agent.
set the userAgent of widget "myBrowser" to "myAppEmbeddedBrowser"
launch url "https://myexampleserver.com/content.html" in widget "myBrowser"
Compatibility and Support
OS
mac
windows
linux
android
ios