restReqBasicAuthSet (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

2.10.00


This function will set the basic authentication to use for a request.

 

Input:

req : SYSHANDLE

A handle to the request.

 

user : STRING

The user name to use.

 

pass : STRING

The password to use.

 

 

Returns: INT

1


- Success

0


- Not supported

-1


- Invalid request

-3


- Failed to set authentication

-5


- Request is read only.

 

Declaration:

FUNCTION restReqBasicAuthSet: INT;
VAR_INPUT
  req            : SYSHANDLE;
  user           : STRING;
  pass           : STRING;
END_VAR;

 

 

Example:

Please see the "Examples - REST Basic Authentication Example"