[cgiapp] how to use C::A::Dispatch with FastCGI ?

David Steinbrunner dsteinbrunner at pobox.com
Thu Feb 21 05:29:44 EST 2008


Silent wrote:

> has anyone use C-A-Dispatch with FastCGI ?

<snip>

> 2. after search from google, I tryed:
> 
> 
> #!/usr/bin/perl
> 
> use lib ".";
> use CGI::Fast qw(:standard);
> use APP::Dispatch;
> while (my $q = CGI::Fast ) {
>         APP::Dispatch->dispatch(
>         args_to_new => { QUERY => $q },
>       );
> }

Looks comparable to code I have working with the exception of a new on the
CGI::Fast call:

  while ( my $q = CGI::Fast->new ) {

I'm also sending a value in the default param of dispatch.  For you that
value would likely be 'User'.

Beyond those thoughts you might want to look into the debug param and work
with it to see if any light can be shed on things.

--
David Steinbrunner




More information about the cgiapp mailing list