Rick Edwards wrote:
Quote:
Can I do this? If I'm passing info in my HTTP headers, can I read this info
via Javascript? I've seen some hope out there, but nothing definitive - I'm
hoping to get that answer here.... |
Cookies are sent as HTTP headers and JavaScript provides access to
cookies per
document.cookie
Some selected HTTP header information is also made accessible by
JavaScript for instance
document.characterSet
in Netscape and
document.charset
in IE.
In general however if your server sends a HTTP response to the browser
that is rendered inside of a window then JavaScript doesn't provide
access to HTTP response headers.
The only way you get access to such headers is if you use XMLHttpRequest
to send and receive a HTTP request
--
Martin Honnen
http://JavaScript.FAQTs.com/