[Catalyst] Engine::CGI POST

Anton Katsarov tony at katsarov.org
Mon Mar 17 09:02:15 GMT 2008


Hello, all,
I am trying to get any post params using C::Engine::CGI, but no result.

Thsi is my cgi handler:

#!/usr/bin/perl
use strict;
use warnings;
BEGIN {
 $ENV{CATALYST_ENGINE} ||= 'CGI';

 }


use FindBin;
use lib "$FindBin::Bin/../lib";
use lib "../../lib";
use MyApp;

eval {

	 MyApp->run;
	};
if ($@) {
	printf("Content-type: text/plain \n\n");
	print $@;
}

1;

and in addition in my application I force using of CGI engine:

use Catalyst qw/
		 -Engine=CGI
		 ConfigLoader
		 Static::Simple
		 StackTrace

		 FormValidator
		 Email
		 Authentication
		 Authentication::Store::DBIC
		 Authentication::Credential::Password

		 Session
		 Session::Store::DBI
		 Session::State::Cookie
	       /;
Does anyone have an idea why POST params are not passing?

Thanks in advance.
Best Regards,
Anton Katsarov




More information about the Catalyst mailing list