Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^3: Running CGI script within another cgi script

by bellaire (Hermit)
on Nov 27, 2009 at 19:15 UTC ( #809798=note: print w/replies, xml ) Need Help??

in reply to Re^2: Running CGI script within another cgi script
in thread Running CGI script within another cgi script

It's because the web server is waiting for more output from your script before it honors the redirect. You have to tell the web server you're done with output. One way would be to close STDOUT:
print CGI->redirect(...); close STDOUT;
Another is to set your buffers to autoflush and send an End-Of-Transmission character:
$|=1; print CGI->redirect(...); print chr(4); # EOT
I've never actually had to do something like this, so others might have a more elegant solution.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2019-10-19 02:31 GMT
Find Nodes?
    Voting Booth?