Link to home
Start Free TrialLog in
Avatar of applecrusher
applecrusher

asked on

Redirection and Internet Explorer 4

Hi there....

I was wondering why Internet Explorer does not respond to normal redirections. As in,
Location: http://server.net/

It either returns a message saying that it cannot retrieve it due to security reasons or produces a HTML page where you have to click a link to get redirected. Is there a way around this?
Avatar of jhance
jhance

I tried this several times and found that IE4.0 dutifully followed the link every time.  Here is my redirect script:

#!/usr/bin/perl

print "Location: ";

if ($ENV{"REMOTE_HOST"} eq "www.bogus.com"){
        print "http://www.bogus1.com/index.html\n\n";
}
else{
        print "http://www.bogus2.com/index.html\n\n";
}
Avatar of applecrusher

ASKER

Hi.

I use something like:

#!/usr/bin/perl

print "Location: http://www.aunic.net/\n\n";

But this doesn't work. I get the same problems as above.
ASKER CERTIFIED SOLUTION
Avatar of jhurst
jhurst

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial