[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Apache Environment Variables
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 22 Jul 2010 18:51:37 -0300
> > print(os.getenv("HTTP_USER_AGENT"))
>
> Thanks Florian, os.getenv seems to access OS environment variables but
> not Apache environment variables set by other Apache modules. The
> error message I got was:
>
> string expected, got nil
That's a strange message: it was not issued by print.
Didn't you by mistake write the string without quotes, as below?
print(os.getenv(HTTP_USER_AGENT))