From: Alex D. <al...@dr...> - 2004-11-19 14:41:08
|
The env var seems to not be set all the time. This might be because I'm reaching the page via http redirect, and you never know (or do you?) Boris, the correctly spelled method is "header_in" and it works like so: my $referer = $apr->header_in('Referer'); (I've just found that out, I didn't know about it, thank you!) but... still no result. Thanks anyway. ----- Original Message ----- From: <sh...@ru...> To: "Alex Deva" <al...@dr...> Cc: "Boris Zentner" <bz...@2b...>; "PageKit Users" <pag...@li...> Sent: Friday, November 19, 2004 4:33 PM Subject: Re: [Pagekit-users] referral field in the http request > If you mean the HTTP referer information, you can get that out of the > runtime environment: > > $ENV{'HTTP_REFERER'} > > A google search randomly turned up this page, which has a useful list and is > running under mod_perl: > > http://www.cis.ksu.edu/~aruljohn/cgi-bin/env.cgi > > If that page stops working try another search for "mod_perl environment > variable list". > > Good luck! > > shimon. > > On Fri, Nov 19, 2004 at 04:09:05PM +0200, Alex Deva wrote: > > Hi, > > > > Can I access the 'referral' field, or indeed the HTTP request header at all? > > There seems to be no method for that (or at least one that would return a > > CGI object, or something) > > > > Thanks! > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: InterSystems CACHE > > FREE OODBMS DOWNLOAD - A multidimensional database that combines > > robust object and relational technologies, making it a perfect match > > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > > _______________________________________________ > > Pagekit-users mailing list > > Pag...@li... > > https://lists.sourceforge.net/lists/listinfo/pagekit-users > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users > |