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

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.

Examples
WGA.HttpClient("http://some-domain.com")
.setCredentials("walter", "top-secret")
.get()