nb_transfer_post_with_parameters.are
/* DESC: This script will supervise a specified host.
 * Copyright (C) 2023 NetModule AG, Switzerland, rfa
 */
 
// int nb_transfer_post(string usr, string pwd, string url, string path, string pp)
// https://httpbin.org/post?par=val&par...
 
usr = "";
pwd = "";
pp="";
file = "out.txt";
 
company = "NetModule";
data = "12.345";
url = sprintf("https://httpbin.org/post?company=%s&data=%s", company, data);
 
ret = nb_transfer_post(usr , pwd , url, file, pp);
 
printf("nb_transfer_post() returns: %s\n", ret == -1 ? "ERROR" : "OK");
printf(fread(fopen(file, "r"), 1024));