Modules/cURL/curl close: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with '__NOTOC__ {{ModuleFunction|cURL}} Closes the curl engine. ==Syntax== <syntaxhighlight lang="lua"> curl_close(curl handler) </syntaxhighlight> ==Required arguments== * '''curl''' The curl handler ==Retu…')
 
No edit summary
Line 27: Line 27:
==See also==
==See also==
{{Modules/cURL/functions}}
{{Modules/cURL/functions}}
[[Category:Modules]]

Revision as of 20:23, 13 June 2010


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

Closes the curl engine.

Syntax

curl_close(curl handler)

Required arguments

  • curl The curl handler

Returns

True on succes, false otherwise

Example

curl = curl_init("http://mtasa.com/");
if not curl then
    outputDebugString("Can't connect to http://mtasa.com/ with cURL");
else
    curl_close(curl);
end


See also