Paul Silver had this post 7 years ago to check various browsers. Has there been an updated script since then?
What I’d like is an if/then construct to tell what Operating System the user is on – it doesn’t have to go all the way down to the browser version.
I’m using the cgi.user_agent string to infer what OS they’re using.
Paul Silver had this post 7 years ago to check various browsers. Has there
Share
You will be able to detect what user agent is making the request.
On that line, you will see something like this:
And there is your operating system.
Hope it helps
UPDATE:
And just in case you’re curious to know what the OS name is for the server hosting your application, you can simply use this: