var client = new KSClient('http://localhost:8008/xmlquery/query',
function(ksresponse) {
var facts = ksresponse.getFacts();
var combinations = ksresponse.getCombinations();
var wanted_c = combinations[0];
var verdict = wanted_c.getValue();
...
}
);
var query = new KSQuery();
query.addIdentity(new Identity(type, text));
query.addComposite(name);
query.addUseragent("example index.html");
query.addAuth("myusername", "mypassword");
client.ask(query);