Language Reference Guide : System Classes : UrlConnection Class : Perform Method
 
Share this page          
Perform Method
The Perform method executes the transfer to or from a URL, which must be set before by a SetOption() or SetOptions() method invocation.
The input for the transfer is defined by the InputFile or InputObject attributes. If neither are set, then input is read from the stdin stream.
The output for the transfer is defined by the OutputFile or OutputObject attributes. If neither are set, then output is written to the stdout stream.
This method has the following syntax:
integer = UrlConnection.Perform()
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.