SetOption method: PTDirectTransferObject class
Syntax
SetOption(Option_Name,Option_Value)
Description
Use the SetOption method to set various options such as USERPWD, MAXREDIRS, MAXFILESIZE and so on.
Note:
The SetOption method is optional.
Parameters
| Parameter | Description |
|---|---|
|
Option_Name |
Specifies the name of the option as a String. |
|
Option_Value |
Specifies the value of the option as a String. |
Returns
An Integer value indicating the libcurl error code.
Example
Local PTDirectTransferObject &PTDTObject = CreateDirecttransferObject();
Local integer &return = &PTDTObject.SetOption("MAXREDIRS", "2");