On Sun, Feb 14, 2010 at 9:08 PM, Hank Knight <hknight555@gmail.com> wrote:
Thanks, I tried your code but still can't get it to work.

Is there no easy way with YAWS to get the "User-Agent" for a request?

If you're writing a .yaws file, you don't need the following, but otherwise you do:

-include("yaws/include/yaws_api.hrl").

Then, access the User-Agent header via:

(Arg#arg.headers)#headers.user_agent

--steve