Re: Accessing environment variables prior to invoking the contenthandler.

2003-07-31 Thread Perrin Harkins
On Thu, 2003-07-31 at 15:44, Mark Deepak Puttnam wrote:
 I have used the following code in the in my handler and I still do not
 get the values.

Do you get anything at all?  HTTP_REFERER is not always sent by
browsers.

- Perrin


Re: Accessing environment variables prior to invoking the contenthandler.

2003-07-31 Thread Perrin Harkins
On Thu, 2003-07-31 at 15:44, Mark Deepak Puttnam wrote:
 sub handler {
 my $r=shift;
 my $env=$r-subprocess_env;
%ENV=%$senv;
 
 my $referer=$ENV{'HTTP_REFERER'}; 
   

x
 
 
 }

Come to think of it, you should just use the Apache API for this:

my $referer = $r-header_in(Referer);

- Perrin