Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhr = new XMLHttpRequest();
- xhr.onload = function () {
- if (xhr.status >= 200 && xhr.status < 300) {
- console.log(xhr.responseText);
- } else {
- console.log(xhr.responseText);
- }
- };
- xhr.open('POST', 'http://staging-blackbox.bornfight.com/core/quest/behaviour/solution');
- xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
- xhr.send(JSON.stringify({'solution': 'admin'}));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement