Is it simply the "Location" http directive that you need?

print "Location: http://www.yourdomain.com/path/to/filename.html\n\n";

For this to work, you must not have printed an html header already, such as "Content-type: text/html\n\n" (or the equivalent in cgi.pm).

This is the basic redirect mechanism in http.

Ron

At 10:41 AM 10/16/00 -0500, Ian Frawley wrote:
>>>>
Can anyone help me with this really irritating problem. I have written a cgi script that is fired up from a ErrorDocument 403 that redirects a user to a logon screen if they attempt to enter a secure area. I then have a perl module that authenticates the entered username and password against a table in an Oracle Database through DBI/DBD.

Once I have authenticated the user I need to allow them to view the particular URL the were originally requesting. Getting the URL isn't a problem but redirecting them is.

I have asked this question before and the main advise given was to use the cookie based authentication in the Eagle book but the problem is that this has also got to work for WAP phones......

Ian Frawley
Software Development
Acquist
<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
0161 222 2400

<<<<


Reply via email to