Modules/cURL/curl setopt

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

Package-x-generic.png This function is provided by the external module cURL. You must install this module to use this function.

Set an curl option.


curlcode curlSetopt(curl handler, curloption option, bool/number/string value)

Required arguments

  • handler The curl handler.
  • option An curl option, al the options are found here
  • value The value, this can be a string, number or boolean. At the curl option list you can find wich option needs a string, number or boolean.


Returns a curlcode. Nevermind it for now, i even don't know what it is. But it returns it.


curl = curlInit("");
if not curl then
    outputDebugString("Can't connect to with cURL");
    curlSetopt(curl, CURLOPT_POST, true);

See also