nnerHTML = result;
}
xhr1.send();

//get header test
var xhr2 = new XMLHttpRequest();
xhr2.open('GET', 'example2.txt');
xhr2.setRequestHeader("foO-BAR", "42");
xhr2.setRequestHeader("foo-baR", "21");

xhook.after(function(req, res) {
  if(req.url === 'example2.txt')
    document.getElementById('result-2').innerHTML = JSON.stringify(req.headers, 0, 2);
});

xhr2.send();

</script>
