Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def my_request_handler(req):
- req.add_common_vars()
- agent = req.subprocess_env.get("HTTP_USER_AGENT")
- # `agent` now contains the full user agent of the browser, or None
- req.headers_in[ 'User-Agent' ]
Add Comment
Please, Sign In to add comment