User-Agent

Is it possible to display HTTP_USER_AGENT in an haserl script ran by the internal server?

I've tried echo'ing $HTTP_USER_AGENT in login.chi, but it did not work. I would find this very useful.