[Catalyst] Environment Variables

Andrew Rodland arodland at comcast.net
Wed Feb 27 22:59:59 GMT 2008


On Wednesday 27 February 2008 04:39:22 pm Ryan Pack wrote:
> Hello all.  First time posting here.  :-)
>
>
>
> I'm trying to get at $ENV{HTTP_REFERER} from my catalyst app but it
> doesn't seem to be there.  In fact the only keys that exist in %ENV are
> CATALYST_ENGINE and PERL5LIB.  Are the others being wiped out somehow?
> Not sure if this is normal Catalyst behavior.  Thanks!
>
They're not being wiped out, they just don't exist to begin with. All those 
envvars are part of CGI, and Catalyst is not CGI. Everything you need to know 
about the incoming request should be in $c->request (alias $c->req).

Andrew



More information about the Catalyst mailing list