Sorry for my English. My description is not clear. Let's see how it works.
1)
+-------------------------------+
| SERVER |
+----+ Request | +----------+ +-----------+ |
|User|--------------->| Target |-->| Perl | |
| | | | Embperl | | class | |
| |<---------------| script |<--| | |
+----+ Responce | +----------+ +-----------+ |
| |
+-------------------------------+
In this case, user'll see current page till then requested function returns results and new page will be generated. Because In Embperl 2 there is no way to flush buffers before everything is done - this is answer of Gerald Richter (man who develops Embperl).
+-------------------------------+
| SERVER |
+----+ Request | +----------+ |
| |--------------->| Wait | |
|USER| | | page | |
| |<---------------| | |
+----+ Responce | +----+-----+ |
^ (wait) | | Redirect |
| | v |
| | +----------+ +---------+ |
| | | Target |--->| Perl | |
+------------------| script |<---| class | |
Respoce | | | | | |
(result) | +----------+ +---------+ |
+-------------------------------+
In this case, user calls wait page which display some message (and user can see it immediately because it's short request). Then wait page parses passed arguments, builds new request (target script name should be passed as argument) and does redirect to target script.~ Schiller
In reply to Re: Re: Watching long processes through HTTP
by nite_man
in thread Watching long processes through HTTP
by nite_man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |