Language Reference Guide : System Classes : UrlConnection Class : SetOption Method
 
Share this page          
SetOption Method
The SetOption method sets a transfer related option before a Perform() method invocation.
This method has the following syntax:
integer = UrlConnection.SetOption(option = integer, value = expression)
This method has the following parameters:
option
Specifies the option to be set. It must be one of the CURLOPT_* constants listed in UrlConnection "option" Settings.
value
Specifies the value for the option to be set. The type of the expression depends on the option to be set.
If the method is successful, it returns ER_OK; otherwise, it returns ER_FAIL. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.