are you talking about a request header, or a response header ?
you can set request headers in ajax.
you can mimic response headers with meta tags, splicing them into the response and then doc.writing the output, but that's about as good as you can do with just javascript.
I'm talking about injecting request HTTP headers in all subsequent requests that are destined to the same domain as the domain that initially sent that javascript.
I want to embed in my javascript (the one I sent as a response for request#1) a piece of code that will add a specific HTTP header in all the next requests originated from that javascript page.
I prefer using javascript to do that...
but, if there's a way to do that in ajax - can someone elaborate on that ?