<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CURL > Curl_Command_GetLastExitCode |
Description
Returns the exit code from the last Curl_Command call.
Syntax
exitCode = Curl_Command_GetLastExitCode
Returns
Integer, exit code from the last Curl_Command call.
Parameters
Remarks
Restrictions
See also
Examples
uses "curl", "console"
if Curl_Exists then
Curl_Command("--request GET https://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