<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CURL > Curl_Exists |
Description
Checks if CURL is available.
Syntax
flag = Curl_Exists
Returns
Flag indicating presence of CURL, to be further used for CURL commands.
Parameters
Remarks
Restrictions
See also
Examples
uses "curl", "console"
if Curl_Exists then
Curl_Command("--request GET http://www.thinbasic.com")
PrintL "Command : " + Curl_Command_GetLastCommand
PrintL "Output : " + Curl_Command_GetLastOutput
PrintL "Exit code: " + Curl_Command_GetLastExitCode
else
PrintL "No CURL available."
end if
WaitKey