Example XHR POST
JavaScript
var xhr = new XMLHttpRequest()
xhr.open('POST', '/asdf', true);
xhr.addEventListener('load', function(e) {
console.log('loaded');
});
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send('{"a":1}');
console.log('sent');