perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: who's putting that <pre> tag in the output...?
Date Mon, 23 Mar 2009 18:59:56 GMT
On Mon 23 Mar 2009, Iosif Fettich wrote:
> Using the (obvious...!) REDIRECT_URL as you suggested works! :)

An ErrorDocument is an internal redirect. These REDIRECT_... environment 
variables are copied from the previous ($r->prev) request's 
$r->subprocess_env just by copying everything and prepending REDIRECT_ 
to each key. So if the original request has an environment variable 
named REQUEST_URI the error document should have a 
REDIRECT_REQUEST_URI, see rename_original_env() in 
httpd-x.y/modules/http/http_request.c.

Since REQUEST_URI is the standard CGI environment variable (see 
ap_add_cgi_vars() httpd-x.y/server/util_script.c) I'd take 
REDIRECT_REQUEST_URI.

Torsten

-- 
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net

Mime
View raw message