javascript 客户端:
let xmlHttp = new XMLHttpRequest();
xmlHttp.open("POST", XMLHttpServerUrl+"/requestapi");
xmlHttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
xmlHttp.onreadystatechange = function(e) {
if (this.readyState == 4 && this.status == 200) {
console.log("request succeed.");