When I execute the following example code from my local test
environment:
var [xmlhttp object set based on availability]
xmlhttp.open("H EAD", "http://www.google.com" ,true);
xmlhttp.onready statechange=fun ction() {
if (xmlhttp.readyS tate==4) {
alert(xmlhttp.g etAllResponseHe aders())
}
I personally get a "Permission Denied" error but for a bunch of people
at my office this works. I'm assuming that's a SP2 or MS patch/hotfix
thing? Does anyone know exactly why?
My next question is, supposing I can get past the permissions error,
does anyone know if I can use the XMLHTTP object to obtain the cookie
that is passed from a site? When I change "http://www.google.com" to
"/" I can see the entire header passed from my site but it doesn't
contain any cookie info. Any help would be greatly appreciated.
Thanks in advance!
environment:
var [xmlhttp object set based on availability]
xmlhttp.open("H EAD", "http://www.google.com" ,true);
xmlhttp.onready statechange=fun ction() {
if (xmlhttp.readyS tate==4) {
alert(xmlhttp.g etAllResponseHe aders())
}
I personally get a "Permission Denied" error but for a bunch of people
at my office this works. I'm assuming that's a SP2 or MS patch/hotfix
thing? Does anyone know exactly why?
My next question is, supposing I can get past the permissions error,
does anyone know if I can use the XMLHTTP object to obtain the cookie
that is passed from a site? When I change "http://www.google.com" to
"/" I can see the entire header passed from my site but it doesn't
contain any cookie info. Any help would be greatly appreciated.
Thanks in advance!
Comment