Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

identifying if user is thick or thin client

Status
Not open for further replies.

simonWMC

Programmer
Dec 2, 2002
180
GB
hello

i want to create a page that can tell if a user on our network is trying to access from a thick or thin client machine. I then want to redirect them to separate HTML pages dependant on what sort of machine they are using.

Anyone done this before or know how ?

I am not too good with .asp

cheers
 
Would the browser be thibk or thin? If one, what other client are they using?

One option might be to look at the headers in the page request. Rather than do an OS check (which I don't think will be unique enough, though I could be wrong) you might be able to nail down that when a request comes in with certain things in the headers that it will always be your non-browser client.

Check the ServerVariables Collection to see if that might have what you want. If not then there is a methoid of detcting the browser that internally uses a lookup file to lookup portions of the header and return a string with browser name. Example:
Code:
Set objDet = Server.CreateObject("MSWC.BrowserType")
brName = objDet.Browser
brVer = objDet.Version
Response.Write "You are using browser: " & brName & " version " & brVer
This BrowserType object requires a file called browscap.ini in the system32/inetsrv folder. This file likely never got updated by the Windows Update service so you will have to update it yourself to detect the browsers that have come out since your ersion of windows was released. Thebest place I have found for is he keeps the file up to date and covers a wide range of robots as well as browser types.

-T

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top