OpenWGA 7.7 - TMLScript reference

WGA » WGA.HttpClient()
Method :

setCredentials(username, password)

On object WGA.HttpClient()
Usage Sets authorization http-header to the specified value.
Description Username and password will be Base64 encoded an the authorization http header will be generated and set.

username (String):

The name of the user to be set

password (String)

The password to be set.

Return value

This method returns the HttpClient object so that methods can be chained.

.setCredentials("walter", "top-secret")