Is it possible to use some kind of JavaScript to change or set a HTTP request\'s header?
Using the XMLHttpRequest object, you can use the setRequestHeader function.
A little code to get you on your way:
var xhr = new XMLHttpRequest()
xhr.open("GET", "/test.html", true);
xhr.setRequestHeader("Content-type", "text/html");
xhr.send();
The method setRequestHeader must be called after open, and before send.
More info: https://developer.mozilla.org/en/DOM/XMLHttpRequest#setRequestHeader()