setUserAgent
void session.setUserAgent ( String userAgent ) (professional and enterprise editions only)
Description
Sets the user agent to be used for all requests.
Change Log
Version |
Description |
5.5.23a |
Available in Professional and Enterprise editions. |
Examples
Set the user agent
session.setUserAgent( "Opera/9.64(Windows NT 5.1; U; en) Presto/2.1.1" );
// You can also access the current value like so:
session.log( "Session user agent: " + session.getUserAgent() );