R
robert.waters
Hello,
How can you get XMLHTTP to follow a redirect (302 moved temporarily) to
a different subdomain?
When executing xmlhttp.send() on subdomain1.mysite.com/page.cgi from a
web page also on subdomain1.mysite.com, if mysite.com server 302
redirects to subdomain2.mysite.com, there is a security error.
Even if I know where the redirect is going to be, I can't use it
because it's in another subdomain. And I can't even check the xmlhttp
object.status for '302' in the script because I get an object error as
soon as it tries to follow the redirect.
Is there a way to do this? (there should be) If not, is there a way to
capture the fact that a 302 was returned by the server?
Possible to change the Host parameter in the http request (I tried,
trivially, and failed)?
Note that this works fine on Firefox...
Thanks in advance,
Robert Waters
How can you get XMLHTTP to follow a redirect (302 moved temporarily) to
a different subdomain?
When executing xmlhttp.send() on subdomain1.mysite.com/page.cgi from a
web page also on subdomain1.mysite.com, if mysite.com server 302
redirects to subdomain2.mysite.com, there is a security error.
Even if I know where the redirect is going to be, I can't use it
because it's in another subdomain. And I can't even check the xmlhttp
object.status for '302' in the script because I get an object error as
soon as it tries to follow the redirect.
Is there a way to do this? (there should be) If not, is there a way to
capture the fact that a 302 was returned by the server?
Possible to change the Host parameter in the http request (I tried,
trivially, and failed)?
Note that this works fine on Firefox...
Thanks in advance,
Robert Waters