The HTTPRequest class / com.HTTPRequest methods |
Defines the user login and password to authenticate to the server.
setAuthentication( login STRING, pass STRING, scheme STRING, realm STRING )
The setAuthentication() method defines the mandatory user login and password to authenticate to the server.
The scheme parameter defines the method to be used during authentication. The supported values for the scheme parameter are Anonymous, Basic and Digest. The default is Anonymous.
An optional realm can be specified.
With Anonymous or Digest authentication, you must re-send the request if you get a 401 or 407 HTTP return code (authorization required)
If a user-defined authentication is set and there is an authenticate entry for this URL in the FGLPROFILE file, the user-defined authentication has priority.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.