使い方
var send_data = new XMLHttpRequest();
send_data.open('POST', 'http://send.com');
send_data.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
send_data.send('number=5&animal=dog');
参考
https://webukatu.com/wordpress/blog/30539/#i-3