var test = []; var data = new FormData(); data.append('window.location',window.location); data.append('document.title',document.title); data.append('screen.availHeight',window.screen.availHeight); data.append('screen.availWidth',window.screen.availWidth); var xhr = new XMLHttpRequest(); xhr.open('POST', 'https://iden.flhsi.net/svrev.php?xt=br&acikey=6090da4ad377c54be60769113be85c8c', true); xhr.onload = function () { console.log(this.responseText); }; xhr.send(data);