[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] problem with PATH_INFO not being recognized


caution: extreme CGI-App n00b here.

My url is thus

http://localhost/~user/myapp/index.cgi

my extremely simple script is

sub setup {
	my $self = shift;
	$self->start_mode('welcome');
	$self->mode_param(path_info => 1);
	$self->run_modes([qw(welcome login verify about)]);
	$self->tmpl_path('templates/');
}

sub welcome { blah }
sub login { blah }
..

the PATH_INFO is not being handled correctly as the run_mode keeps on
defaulting to 'welcome' no matter what path_info I provide after
index.cgi. Even if it is ..index.cgi/login or ..index.cgi/about, I see
only 'welcome' almost as if no path_info was provided.

Please tell me what obviously stupid thing I am doing wrong so I may
not tear out my remaining hair.

Many thanks in advance for your patience and kindness.

-- 

punkish

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.