Phoenix.pm: CGI redirect question

Phaedrus phaedrus at endless.org
Tue Dec 7 09:59:39 CST 1999


> From: Douglas E. Miles <doug.miles at ns2.phoenix.bowne.com>

If that is your real name...

> Reply-To: phoenix-pm-list at happyfunball.pm.org

You'd like that, wouldn't you?

> To: Phoenix.pm <phoenix-pm-list at happyfunball.pm.org>

You called me WHAT?

> Subject: Phoenix.pm: CGI redirect question

I'm hoping on this one late in the game... just making sure I understand
the question right now, then I may or may not have anything useful to
say..

> 
> I have something weird going on here...
> 
> I have a cgi script that generates a couple of HTML pages from
> templates, and then does a redirect to one of the generated pages.  The
> problem is that the page is only about half there.  The weird part is

You generate a page, then do a Location: redirect? Are you buffering the
output then disposing of it so that the Location: works, or do you not
want the Location: to work if you have generated output? Which page is
half there, the one redirected too?

> that this has been working fine for a couple of months.  I'm wondering
> if somehow the redirect is reaching the browser before the page is
> finished generating, thus killing the CGI before it completes.  The only

That would explain it, but an out of context Location: header is
meaningless... Hmm...

> way that I can think of this happening is if the web server (apache on
> RH Linux) is somehow caching the redirect response.  Any thoughts? 
> Also, it works fine from the command line.  Thanks!

Tell me how this is supposed to work, and if you are using buffering on
the output, and what kind... and I'll take a shot at it..

goodluck!
-scott

> 
> -- 
> For a list of the ways which technology has failed
> to improve our quality of life, press 3.
> 
3333
3333333333
33333333333333333333333333333333333333
333333333333333333
3333
Hmm. Must be my keyboard... maybe I should hold down the Microsoft key and
try it...





More information about the Phoenix-pm mailing list