void sendMTS(string cIn){
string Header="Content-Type:application/json";
string Code = strf("{\r\n\"text\": \"Error - %s\"\r\n}",cIn);
string URL = "https://4xcd.cloud.mattermost.com/hook/.....";
int handle=http_send (URL, Code, Header);
printf("\nSTAT: %d",http_status(handle));
http_free(handle);
}
function run() {
printf("Run testing..");
sendMTS("Test");
wait(1000);
quit("");
}