lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> >  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))