RE: [Catalyst] Application Testing, Mocking Apache Headers/Environment

2012-04-16 Thread brainbuz
In my auto action I have something like: $c-{ USERNAME } = $c-engine-env-{ HTTP_COOKIE } ;#Authenticated via apache 2.4 mod_auth_form $c-{ USERRIGHTS } = $c-model( 'method returning a ref to a list of the rights for $c-{ USERNAME }'); In a controller I would like to test There is code

Re: [Catalyst] Application Testing, Mocking Apache Headers/Environment

2012-04-16 Thread brainbuz
- the answer you're probably looking for is to use Plack::Middleware::ForceEnv Thanks I peeked at the documentation it looks like exactly the approach I wanted to take. The documentation is brief and the tests are all directly against plackup. You wouldn't happen to have some handy examples you

Re: [Catalyst] Providing a REST API from behind Apache/FastCGI?

2013-11-11 Thread brainbuz
Newer versions of apache make some security changes so apache, even though you don't think any access control is being applied on the server side, might be blocking it by default (although that should be a 403 rather than 401). You could try a block like this: Location /uri_for/my/app.fcgi