Code: Select all
theHTTP.url = "http://path.to.server/initialize";
theHTTP.authScheme = (HTTP.BasicAuth);
theHTTP.authorization = ("authorization string");
theHTTP.user = userName;
theHTTP.password = password;
theHTTP.post();
I've tried the waitForFinished with the getServerResponse after that to pickup the UniqueID. The script passes the While part.
The response will come back as JSON, from the server.
Code: Select all
while( !theHTTP.waitForFinished( 3 ) ) {
var uuid = theHTTP.getServerResponse().toString( "UTF-8" );
theHTTP.setAttachedFile(jobFile);
job.log( 1, "UUID = " + uuid);
}
thanks
Jan