Guest User

Untitled

a guest
Apr 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def my_request_handler(req):
  2. req.add_common_vars()
  3. agent = req.subprocess_env.get("HTTP_USER_AGENT")
  4.  
  5. # `agent` now contains the full user agent of the browser, or None
  6.  
  7. req.headers_in[ 'User-Agent' ]
Add Comment
Please, Sign In to add comment