Hi there
Can anyone tell me please how to get teh visitor's operating system? I have tried Retrieve.browser.platform but thisonly gives me WinNT, I was hoping for Vista or XP or whatever. Any ideas guys?
Many thanks
John / Bikercaz
Hi there
Can anyone tell me please how to get teh visitor's operating system? I have tried Retrieve.browser.platform but thisonly gives me WinNT, I was hoping for Vista or XP or whatever. Any ideas guys?
Many thanks
John / Bikercaz
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
AlanRank #669 · 3.6K reputationPosted Jul 9, 2008, 3:17 PM EDT
I think you might be able to get the OS by parsing the output from:
Request.ServerVariables["HTTP_USER_AGENT"]
If you look for Windows NT within the string, the version number will then tell you what the OS is:
'Windows NT 4.0' = Windows NT
'Windows NT 5.0' = Windows 2000
'Windows NT 5.1' = Windows XP
'Windows NT 5.2' = Windows Server 2003 (or possibly 64 bit XP)
'Windows NT 6.0' = Windows Vista
John Cazaly3 reputationPosted Jul 9, 2008, 5:08 PM EDT
Thanks Alan,
Yes I can see that although programatically it is a pain to write something to pull that string out of the User Agent and stick it into SQL Server. From my website I'm trying to understand who my visitors are, where they are from and types of PCs - e.g. Opsys, CPU, Browser which I can collect and goes in to the database. Then I can see how many have PPCs and do I develop a site for these users and automatically send them there. A lot of work for a guy just renting holiday 2 apartments in the Canary Islands!
Thanks for your help, it is much appreciated
John