Extract user agent from HTTP requests