IE; xmlhttp; 302 redirect

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Errors 302 and 304 3
HELP my site gets a 302 temporary redirect 2
Net::HTTP::Put with 302 redirect? 1
xmlhttp 1
302 Object Moved response 2
404 error produces 302 response 0
Go to anchor via xmlhttp 4
XMLHTTP 4

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top