Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Redirection problems with Perl, Netscape and IE

by newrisedesigns (Curate)
on May 10, 2002 at 18:35 UTC ( [id://165742]=note: print w/replies, xml ) Need Help??


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*

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://165742]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-29 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found