/ Responsible for handling all curl operations. Creating a new instance of this class will create a new Curl object allowing you to talk with a http server or use other services related to Curl /
Constructs this Curl object and initialises curl internally.
Throws an IOException on failure to setup curl
function __construct() : void
Sets an option for this curl. The _option must be a valid curl option. The value provided must also be valid for the given option
Seek here: https://curl.haxx.se/libcurl/c/easy_setopt_options.html for a list of valid options for Curl
Note: not all options are implemented within marble you will receive an UnimplementedException if this is the case
function setopt(number _option, string value) : void
Sets an option for this curl. The _option must be a valid curl option. The value provided must also be valid for the given option
Seek here: https://curl.haxx.se/libcurl/c/easy_setopt_options.html for a list of valid options for Curl
Note: not all options are implemented within marble you will receive an UnimplementedException if this is the case
function setopt(number _option, number value) : void
Sets an option for this curl. The _option must be a valid curl option. The value provided must also be valid for the given option
Seek here: https://curl.haxx.se/libcurl/c/easy_setopt_options.html for a list of valid options for Curl
Note: not all options are implemented within marble you will receive an UnimplementedException if this is the case
function setoptArray(number _option, string[] value) : void
Executes this Curl request and returns the response body
function execute() : string
Request internal information from the curl session with this function.
The info passed is based on the curl doc. Seek available information: https://curl.haxx.se/libcurl/c/curl_easy_getinfo.html
function getinfo(number info) : number
Closes this curl connection
function close() : void