HTTP Basic authentication REST Call user count
Hello,
Whenever, we make REST call, it creates a new connection which we can see under Monitoring->Users Logged In. However, it doesn't close the connection even after completion of the service.
var params = {
headers: undefined,
url: "http://localhost:8082/Thingworx/Resources/EntityServices/Services/DeleteUser/",
username: "xxxx",
password: "xxxx",
ignoreSSLErrors: true,
withCookies: true,
timeout: 30,
content: {user: "abc"}
};
Resources["ContentLoaderFunctions"].PostJSON(params);
When we make call using app key it doesn't create new connection.
var header = {
"appKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Content-Type": "application/json"
};
var params = {
headers: header /* JSON */,
url: "http://localhost:8082/Thingworx/Resources/EntityServices/Services/DeleteUser/",
content: {user: "abc"}
};
Resources["ContentLoaderFunctions"].PostJSON(params);
Can we have the difference between two methods ? or Is there is anyway to close the connection ?

