http://qs321.pair.com?node_id=165742


in reply to Redirection problems with Perl, Netscape and IE

Thanks vladb for your help with CGI::Persistent.

I have found the major extent of my problem, after a lot of poking around.

The Redirection header was (and I thought remained as) 'Location:'

This is not the case.
Location: is no longer the definitive "Redirect Header." URI: is now the preferred redirection header.

If you look in my code, you'll see:

print $q->redirect(-URL=>...

By changing URL to URI, CGI.pm changes Location: to URI:. If you check the perlfaq9, it says that CGI.pm sends both, but I'm not sure that the version I'm using - on a virtually hosted machine. :( - does what the perlfaq says.

Thanks to those (especially vladb) for your help.

John J Reiser should have known the difference
newrisedesigns.com

Replies are listed 'Best First'.
Re: Re: Redirection problems with Perl, Netscape and IE
by mt2k (Hermit) on May 11, 2002 at 00:55 UTC
    Now I am interested in what is going on there.

    Since I started CGI programming with perl, I have always used the 'Location:' HTTP header for redirecting users.
    I have never once used the 'URI:' header and it has always worked.

    Also, I just tried a script using this 'URI' header and it did not work under either IE 6 or NS 6.
    So what is going on? *scratches his head and goes off to eat a taco*