[Catalyst] Environment Variables

Stephen Sykes stephen at stephensykes.us
Wed Feb 27 23:02:07 GMT 2008


Ashley wrote:
> 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/
>
>
Funny, I just happened to have that cpan page open - 
http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7012/lib/Catalyst/Request.pm



More information about the Catalyst mailing list