Modules/cURL/curl cleanup: Difference between revisions
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 |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ModuleFunction|cURL}} | {{ModuleFunction|cURL}} | ||
Cleans up the curl handle. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
curlCleanup(curl handler) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 16: | Line 16: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
curl = | curl = curlInit("http://mtasa.com/"); | ||
if not curl then | if not curl then | ||
outputDebugString("Can't connect to http://mtasa.com/ with cURL"); | outputDebugString("Can't connect to http://mtasa.com/ with cURL"); | ||
else | else | ||
curlPerform(curl); | |||
curlCleanup(curl); | |||
curlClose(curl); | |||
end | end | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 29: | Line 29: | ||
==See also== | ==See also== | ||
{{Modules/cURL/functions}} | {{Modules/cURL/functions}} | ||
Latest revision as of 11:09, 22 June 2014
This function is provided by the external module cURL. You must install this module to use this function. | |
Cleans up the curl handle.
Syntax
curlCleanup(curl handler)
Required arguments
- curl The curl handler
Returns
Nothing usefull
Example
curl = curlInit("http://mtasa.com/"); if not curl then outputDebugString("Can't connect to http://mtasa.com/ with cURL"); else curlPerform(curl); curlCleanup(curl); curlClose(curl); end