[Pdx-pm] Apache, mod_perl, Catalyst, qx, and the ampersand

Roderick A. Anderson raanders at acm.org
Tue Jan 9 12:05:07 PST 2007

Roderick A. Anderson wrote:
> Roderick A. Anderson wrote:
>> I'm starting here to get some ideas on whether I'm going anywhere near 
>> the right direction.
>> We have a Catalyst based application but have been asked to some 
>> non-View processing while the user continues with other things.
<snip />
> Trouble is the example code from the POE site ( http://pow.perl.org ) 

OOPS typo http://poe.perl.org

> doesn't work for a POST.
> 	http://poe.perl.org/?POE_Cookbook/CGI_Requests
> Is what I want to use and it uses what I'm used to -- CGI.pm

<snip />

Solved the problem when it became clear it was a SSFF ( sloped 
shoulders, flat forehead ) issue.  I _can_ post the POE server.

Where I'm confused now is how to handle the actual process without 
having the client wait.

What I am doing is passing a URI to a pdf file that needs to pulled back 
followed by some processing.  This needs to happen after the client hits 
the server.

I've got a snippet of code like this:

# All the POE setup and friends plus URI ( get ) parsing then:


         start_html("Posted Values") .
         "Order Id   = " . $oid    . br() .
         "User Id    = " . $uid    . br() .
         "URL        = " . $url    . br() .
         "md5sum     = " . $md5sum . br() .
         "Image path = " . $ipath  . br() .

# The actual application code goes here and down

# ...

return RC_OK;

What I should go after the $response-content ( ... ); so the rest of my 
code runs but the client can continue along its merry way.


More information about the Pdx-pm-list mailing list