Xojo.Net.HTTPSocket.AuthenticationRequired

From Xojo Documentation

Event


Xojo.Net.HTTPSocket.AuthenticationRequired(realm As Text, ByRef name As Text, ByRef password As Text) 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