URLConnection.AuthenticationRequested

From Xojo Documentation

Event


URLConnection.AuthenticationRequested(realm As String, ByRef name As String, ByRef password As String) As Boolean

Supported for all project types and targets.

Called when the connection requires HTTP basic authentication. Set the name and password and return True.

Parameters

Parameter Description
realm The realm is an area (not a particular page, it could be a group of pages) for which the credentials are used.
name The name to use for authentication. Since it is ByRef, set the parameter to the name.
password The password to use for authentication. Since it is ByRef, set the parameter to the name.

Sample Code

Specify a name and password:

name = "MyUserName"
password = "MyPassword"
Return True