473,511 Members | 10,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using ASP to determine the OS

I want to determine the operating system using ASP (or VBScript inside of
ASP). I tried to get it using the Request.
ServerVariables(EnvironmentVariable) method. On the web page about ASP in
which I found this method, it gave a list of possible values for the
EnvironmentVariable parameter. One of these, which is the one that I tried
to use, was HTTP_UA_OS. However, this value did not seem to work, and when I
displayed a list of possible values using a For Each loop, it was not in the
list, and none of the other variables looked like they could determine the
OS either. Is this supposed to be an environment variable, and if not, is
there any other way to determine the OS using ASP? Thank You.
--
Nathan Sokalski
nj********@hotmail.com
Jul 19 '05 #1
2 4866
Make a page like this to see what server variables are available:

For Each au83rfajksk4hrt In Request.ServerVaribles
Response.Write au83rfajksk4hrt & " = " &
Request.ServerVariables(au83rfajksk4hrt) & "<hr>"
Next

Also see here. http://www.aspfaq.com/5004

Ray at home

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:Ox**************@TK2MSFTNGP10.phx.gbl...
I want to determine the operating system using ASP (or VBScript inside of
ASP). I tried to get it using the Request.
ServerVariables(EnvironmentVariable) method. On the web page about ASP in
which I found this method, it gave a list of possible values for the
EnvironmentVariable parameter. One of these, which is the one that I tried
to use, was HTTP_UA_OS. However, this value did not seem to work, and when I displayed a list of possible values using a For Each loop, it was not in the list, and none of the other variables looked like they could determine the
OS either. Is this supposed to be an environment variable, and if not, is
there any other way to determine the OS using ASP? Thank You.
--
Nathan Sokalski
nj********@hotmail.com

Jul 19 '05 #2

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:Ox**************@TK2MSFTNGP10.phx.gbl...
I want to determine the operating system using ASP (or VBScript inside of
ASP). I tried to get it using the Request.
ServerVariables(EnvironmentVariable) method. On the web page about ASP in
which I found this method, it gave a list of possible values for the
EnvironmentVariable parameter. One of these, which is the one that I tried
to use, was HTTP_UA_OS. However, this value did not seem to work, and when I
displayed a list of possible values using a For Each loop, it was not in the
list, and none of the other variables looked like they could determine the
OS either. Is this supposed to be an environment variable, and if not, is
there any other way to determine the OS using ASP? Thank You.
--


Response.Write Request.ServerVariables("HTTP_USER_AGENT")

This string usually contains some reference to the OS, but it is up to the
browser to determine what it says, and up to you to determine what it means.
Here are some (Win2000) examples:

IE5.5:
Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Mozilla:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030728

Opera:
Opera/7.0 (Windows 2000; U) [en]

Netscape4:
Mozilla/4.03 [en] (WinNT; U ;Nav)

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2743
by: Lenard Lindstrom | last post by:
I was wondering if anyone has suggested having Python determine a method's kind from its first parameter. 'self' is a de facto reserved word; 'cls' is a good indicator of a class method ( __new__...
3
3107
by: Weston C | last post by:
I'm coding up a small little script that's supposed to be used to display the number of hours until the US Financial markets open/close. Naturally, this involves getting the current time on the...
11
6552
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
0
3910
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
3
1835
by: jaYPee | last post by:
is there a way to know if the form is edited or not after calling addnew? Me.BindingContext(DsStudentCourse1, "Students").AddNew() because i got an error after closing the form. because in my...
6
14320
by: Jana | last post by:
Greetings Access Gurus! I am working on an app to send batch transactions to our bank, and the bank requires that we place an effective date on our files that is 'one business day in the future,...
5
1360
by: rmorvay | last post by:
I need to know if there is a way to determine the amount of RAM that a person has on their workstation from a web application. We are using BrowserHawk to mine HTTP information but I also need to...
6
13341
by: jackj | last post by:
Hi, I am first time C++ student and doing the usual tasks. This one is to create a triangle based on user input of how large (how many rows) and what symbol to use. I have managed to create a...
3
13201
by: Giampaolo Rodola' | last post by:
Hi, I'd like to know if there's a way to determine which is the best buffer size to use when you have to send() and recv() some data over the network. I have an FTP server application which, on...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7427
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.