<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CURL > Curl_Command |
Description
Performs the specified CURL command synchronously.
Syntax
exitCode = Curl_Command(parameters)
Returns
Exit code of the command execution. Zero indicates success.
Parameters
Name |
Type |
Optional |
Meaning |
parameters |
String |
No |
Complete set of parameters for the curl.exe
|
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