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