(deleted)
(deleted)
Below is a partial example, from some code I wrote, which is working..
BTW, calling runShellCommandAsynchronously() and waiting 10 seconds is daft.
You can set a timeout for curl with -m
Process p;
p.begin("curl");
p.addParameter("-X");
p.addParameter("PUT");
// continue adding parameters
p.run();
//check for errors
if(p.exitValue()) {
//etc.
}
p.close();
(deleted)