Top "User-agent" questions

A user agent is a piece of software (a software agent) that acts on behalf of a user.

Parsing HTTP User-Agent string

What is the best method to parse a User-Agent string in Python to reliably detect Browser Browser version OS Or …

python http http-headers user-agent
What is "Trident" in my user agent string refer too?

According to UserAgentString.com my user agent string: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko Does this mean that …

internet-explorer user-agent
Is there a good method for parsing the user-agent string?

I have a Java module that receives the User-Agent string from an end user's browser needs to behave slightly differently …

java parsing user-agent
How can I set the "User-Agent" header of a UIWebView in Swift

I am using Xcode 6 for an iOS App with Swift. I have got a simple ViewController with an embedded UIWebView. …

ios swift uiwebview user-agent nsurlrequest
Setting a custom userAgent in HTML or JavaScript

Is there any way to do this? I'm trying to send a GET request to a website, but I want …

javascript html get user-agent
Fetch a Wikipedia article with Python

I try to fetch a Wikipedia article with Python's urllib: f = urllib.urlopen("http://en.wikipedia.org/w/index.php?…

python urllib2 user-agent wikipedia http-status-code-403
Detect user agent in Rails 4 - read HTTP header

I just switched from PHP to Ruby on Rails and was wondering if there was a way to detect the …

ruby-on-rails ruby http-headers ruby-on-rails-4 user-agent
What's the user agent of Chrome for Android after the user switches it to desktop version?

We know Chrome for Android's user agent is: Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) …

android google-chrome mobile user-agent chrome-for-android
cUrl set language header

How can I set a language header for my cURL request? e.g. now I get the homepage of facebook.…

curl http-headers user-agent http-accept-language
Detecting Microsoft's edge or spartan with javascript

Is the user agent for Edge or Spartan browsers known already? Can anyone tell me how to detect this browser …

javascript browser user-agent