Modules/cURL/curl close: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
curl_close(curl handler)
curlClose(curl handler)
</syntaxhighlight>
</syntaxhighlight>


Line 16: Line 16:
==Example==
==Example==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
curl = curl_init("http://mtasa.com/");
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
     curl_close(curl);
     curlClose(curl);
end
end
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 11:07, 22 June 2014


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

curlClose(curl handler)

Required arguments

  • curl The curl handler

Returns

True on succes, false otherwise

Example

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


See also