lua-users home
lua-l archive

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


* Roger Munk:

> Can Lua access Apache environment variables? Can someone point me in
> the direction of an example?

If I recall CGI correctly,

  print(os.getenv("REMOTE_ADDRESS"))
  print(os.getenv("HTTP_USER_AGENT"))

etc. should work.