added expressjs server instead of python one

This commit is contained in:
janis
2022-10-30 15:02:25 +01:00
parent ab47525e7b
commit f5b682598b
623 changed files with 88586 additions and 64 deletions

9
nodeserver/test.js Normal file
View File

@@ -0,0 +1,9 @@
var XMLHttpRequest = require('./node_modules/xmlhttprequest').XMLHttpRequest;
var xhrq = new XMLHttpRequest();
xhrq.open('POST', "http://localhost:8000/testrequest", true);
xhrq.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
xhrq.send(JSON.stringify({"Test": "Test2"}));
xhrq.onload = function () {
console.log(this.responseText)
};