[thelist] (ASP) Get Client OS
Paul Cowan
evolt at funkwit.com
Mon Jan 13 15:52:01 CST 2003
> Anybody know a way to access the client's O.S. in ASP?
In theory, you can often (but not _always_, and not necessarily always
100% _accurately_) determine this from the user-agent string sent by
the browser, which you can access with:
request.servervariables("HTTP_USER_AGENT")
Parsing this to get the data out correctly is something else entirely;
you can always try BrowserHawk (from http://www.cyscape.com/), which
is apparently excellent.
There's also a free equivalent which comes with IIS, called
the BrowserCapabilities component, which may or may not be useful --
though you will need to update the browscap.ini file that comes with
it, because it will already be horribly out of date. Cyscape usually
have an up-to-date one available for free.
Hope this helps,
Paul.
More information about the thelist
mailing list