fmk has asked for the wisdom of the Perl Monks concerning the following question:

Hey, Im trying to get lighttpd working with CGI::Fast, im using the following dispatch-script:
#!/usr/bin/perl use strict; use CGI::Fast; use Embed::Persistent; { my $p = Embed::Persistent->new(); while (new CGI::Fast) { my $filename = $ENV{SCRIPT_FILENAME}; my $package = $p->valid_package_name($filename); my $mtime; if ($p->cached($filename, $package, \$mtime)) { eval {$package->handler;}; } else { $p->eval_file($ENV{SCRIPT_FILENAME}); } } }
and this test-script:
#!/usr/bin/perl use warnings; use strict; use CGI ':all'; my $q = new CGI; print $q->header(); print $q->param(); print ' <form action="test.fcgi" method="post"> <input type="hidden" name="test" value="test"> <input type="submit" name="Submit" value="okay"> </form> ';
running under normal perl the script prints test, but invoced trough the dispatcher script it seems to ignore POST-data. Any ideas why this is not working? regards fmk

Replies are listed 'Best First'.
Re: lighttpd, fcgi and POST-data
by Anonymous Monk on Oct 29, 2009 at 16:54 UTC
    What does Embed::Persistent do?