[Catalyst] Force server to send data to browser....

2006-08-29 Thread Ryan
I'm running a test script from a browser and I need it to provide
feedback as it's running but right now if I run it through catalyst it
wont send text until the process is done.  Is there a way to send stuff as
it's running, like forcing the server to send info every so often?

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Force server to send data to browser....

2006-08-29 Thread A. Pagaltzis
* Jonathan Rockway [EMAIL PROTECTED] [2006-08-30 03:20]:
 If you think about it, this is necessary because you can change
 headers or the body at any time in the request cycle... and you
 can't unsend data.

So what’s `finalize_headers` do?

Regards,
-- 
Aristotle Pagaltzis // http://plasmasturm.org/

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Force server to send data to browser....

2006-08-29 Thread Peter Edwards
 Is there a way to send stuff as
 it's running, like forcing the server to send info every so often?
   

Good question, not sure how you'd do it with Catalyst.
I've done this before to show output from a lengthy batch program, using
CGI.pm, sending the header then the start of the output followed by a
flushed space char every minute to stop the browser timing out. Like a tail
-f on a log file.

Regards, Peter



___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/