in reply to CGI::Application... flushing output to browser?

You can flush output by closing STDOUT as soon as you've printed everything you mean to. The client then thinks the script is done, and you're free to continue processing.

Added: Hmm, take that as a general statement - it doesn't seem to fit in with the CGIA way.

After Compline,
Zaxo

  • Comment on Re: CGI::Application... flushing output to browser?

Replies are listed 'Best First'.
Re: Re: CGI::Application... flushing output to browser?
by diotalevi (Canon) on May 22, 2004 at 21:26 UTC
    Just for other people's notes, the CGI::Application way would be to return the page's text or a reference to it at the end of your script and then C'A takes care of the task of sending the http headers and page to the browser. You are normally expected to not print.

      Yup, I've pretty much decided to write a short disclaimer: may take a little while or similar.

      Thanks everyone!

      No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1