(function() { // var http = new XMLHttpRequest(); // var url = "https://v1.sosiago.id/tracking"; var page = window.location.href; var params= "verification_code="+id+"&page="+page; // http.open("POST", url, true); //Send the proper header information along with the request // http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); // http.onreadystatechange = function() {//Call a function when the state changes. // if(http.readyState == 4 && http.status == 200) { // console.log(http.responseText); // } // } // http.send(params); })();