Re: page displayed from CGI script
by "Paul Roberts" <roberts_paul(at)bigfoot.com>
|
Date: |
Sat, 1 Sep 2001 09:01:51 +0100 |
To: |
"HWG Techniques" <hwg-techniques(at)hwg.org> |
References: |
sportsstuff whidbey |
|
todo: View
Thread,
Original
|
|
# set the redirect url
$redirect = "http://www.someplace.com/apage/calledthis.htm";
$|=1; # Flush buffer and send output immediately to webserver.
print "Location: $redirect\nURI: $redirect\n\n" ; # print the location
Should do it.
Paul Roberts
roberts_paul(at)bigfoot.com
+++++++++++++++++++++
----- Original Message -----
From: "Justin H." <justinh(at)whidbey.net>
To: "HWG Techniques" <hwg-techniques(at)hwg.org>
Sent: Thursday, August 30, 2001 6:29 PM
Subject: Re: page displayed from CGI script
| Shawn Sass wrote:
| >
| > Hello list,
| >
| > Could someone please tell me how to return a page at a certain url
through a
| > cgi script? I've tried
| >
| > print "Location:http://www.someplace.com/apage/calledthis.htm\n\n";
| >
| > and
| >
| > print "http://www.someplace.com/apage/calledthis.htm\n\n";
| >
| > With no success. I don't know how to tell it to go somewhere.
| >
| > I've also searched perl.com for some hint of how to accomplish this but
had
| > no success, although I did find some cool pre-made cgi scripts but they
do
| > me no good right now. I really don't want to just print out all the
html of
| > the whole darned page that I want to return from within the script if I
| > don't have to.
| >
| > Any suggestions are appreciated,
| > TIA
|
| You could always send a meta refresh with a 0 second refresh time. I'm
| sure there's something more elegant, but that should work fine.
|
| Justin H.
| --
| "I'm someone who has a deep emotional attachment to Starsky and Hutch."
| -Bill Clinton, at a meeting with television honchos
|
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA