[cgiapp] CGI::Application:Dispatch problem

Jiří Pavlovský jira at getnet.cz
Wed Mar 14 13:01:33 EDT 2012


On 14.3.2012 16:03, Michael Peters wrote:
> On 03/14/2012 10:56 AM, Jiří Pavlovský wrote:
>
>> If I add dispatch_path to my dispatch module
>
> No need to do that just yet. We're trying to figure out what 
> CGI::Application::Dispatch thinks the path_info is, not change it.
>
>> and print $ENV{PATH_INFO}
>> from there it has the first element "cut off".
>> Is that what you meant?
>
> Without doing anything with dispatch_path() (which overrides what 
> CGI::Application::Dispatch does by default) what does $ENV{PATH_INFO} 
> say? If it's not what you think, then somehow Apache isn't setting it 
> to what you think it should be.

I was not trying to change it.  Just printing it and returning 
unchanged.  Not sure where else I could read $ENV{PATH_INFO}.
It seems that the first part of the path is being eaten up: i.e. instead 
of 'foo/bar/baz'  'bar/baz' is being matched.
When I used instance script ran under ModPerl::Registry it did not 
display this behaviour.

Thanks


-- 
Jiří Pavlovský



More information about the cgiapp mailing list