[ic] Accessing Apache environment variables
William Carr
bill at bottlenose-wine.com
Fri Nov 5 14:25:03 EST 2004
On Nov 5, 2004, at 1:54 PM, Interchange User wrote:
> Greetings,
>
> Does IC provide a mechanism to access server environment varibles like
> REQUEST_URI? I've done some non-fruitful Googling for "apache server
> variables" "server variables", etc., and not found a lot. I know I
> can do a [data session browser] and [data session host] to access the
> HTTP_USER_AGENT and HTTP_HOST fields, but can't find one for
> REQUEST_URI.
Yes.
In interchange.cfg use the Environment directive:
Environment REQUEST_URI
Then on an IC page you can do:
[perl global=1]
$ENV{REQUEST_URI};
[/perl]
Not sure if you need the global or not.
--
Bill Carr
Bottlenose - Websites for Wine & Spirits Merchants
http://bottlenose-wine.com/
877-857-6700
More information about the interchange-users
mailing list