Modules/cURL/curl cleanup: 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_cleanup(curl handler) </syntaxhighlight> ==Required arguments== * '''curl''' The curl handler ==Re...")
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{ModuleFunction|cURL}}
{{ModuleFunction|cURL}}
Closes the curl engine.
Cleans up the curl handle.


==Syntax==
==Syntax==

Revision as of 18:43, 31 January 2011


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

Cleans up the curl handle.

Syntax

curl_cleanup(curl handler)

Required arguments

  • curl The curl handler

Returns

Nothing usefull

Example

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


See also