SetAuth method: PTDirectTransferObject class

Syntax

SetAuth(Authorization)

Description

Use the SetAuth method to set the authorization for a request.

Note:

The SetAuth method is optional. If you do not use this method, the authorization of the default search instance is used.

Parameters

Parameter Description

Authorization

Specifies the authorization as a String.

Returns

An Integer value indicating the libcurl error code.

Example

Local PTDirectTransferObject &PTDTObject = CreateDirecttransferObject();
Local integer &ret = &PTDTObject.SetAuth("<user>:<password>");