[Catalyst] Environment Variables
Ryan Pack
rpack at genares.com
Wed Feb 27 23:20:16 GMT 2008
Excellent, thanks!
Ryan Pack
-----Original Message-----
From: Ashley [mailto:apv at sedition.com]
Sent: Wednesday, February 27, 2008 4:45 PM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Environment Variables
On Feb 27, 2008, at 2:39 PM, Ryan Pack wrote:
> Hello all. First time posting here. J
>
> 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!
>
>
>
That info is in $c->request->referer _when_ it's present. Generally
you want to avoid the ENV stuff, though I believe there is a plugin
to get at it if you really need some part of it not already exposed.
-Ashley
_______________________________________________
List: Catalyst at lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst
mailing list