Hi,

do you anybody know, how to send msg to Mattermost?

In the python I use this code:
Code
    headers = {'Content-Type': 'application/json',}
    try:
        main()
    except:
        values =  '{ "text": "Exception on re4mt4"}'
        requests.post('https://4xcd.cloud.mattermost.com/hooks/pmjiwyb............x', headers=headers, data=values) 


but in the Zorro this not work. My code:
Code


void sendMTS(){
    
    string Header="{'Content-Type': 'application/json',}";   
    string Code = "{ \"text\": \"Exception on Zorro :\"}";
    string URL = "https://4xcd.cloud.mattermost.com/hooks/pmj...........x";
    int handle=http_send (URL,  Code, Header);
    printf("\nSTAT: %d",http_status(handle));   // return 173
    http_free(handle);
}

function run() {
    printf("Run testing..");
    sendMTS();
    wait(1000);
    quit("");
}