2023-12-11 07:54:21 +00:00
|
|
|
var SYS = require("lib/system");
|
|
|
|
var HTTP = require("lib/http");
|
2023-12-20 08:58:42 +00:00
|
|
|
//var Toolkit = require("lib/toolkit");
|
2023-12-11 07:54:21 +00:00
|
|
|
|
2023-01-31 02:51:38 +00:00
|
|
|
function main(args) {
|
|
|
|
console.log("Hello world");
|
2023-12-11 07:10:55 +00:00
|
|
|
if (typeof WScript !== "undefined") {
|
2023-12-11 07:54:21 +00:00
|
|
|
console.log("Process version:", SYS.getProcessVersion());
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
var web = HTTP.create();
|
|
|
|
console.log(web.userAgent);
|
|
|
|
} catch (e) {
|
2023-12-20 08:58:42 +00:00
|
|
|
console.error("lib/http: Something wrong");
|
2023-12-11 07:10:55 +00:00
|
|
|
}
|
2023-12-20 08:58:42 +00:00
|
|
|
|
|
|
|
//Toolkit.create();
|
2023-01-31 02:51:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
exports.main = main;
|