Forums

ASP

This topic is locked

Grab browser details

Posted 23 years ago
1
has voted
23 years ago Bec C posted:
Using ASP am I able to grab the browser type/country of a user? If so are there any good tutorials out there for doing this?

Thanks

Replies

Replied 23 years ago
23 years ago Hank Tan-Tenn replied:
Browser type is fairly easy:

Request.ServerVariables("HTTP_User_Agent"

You may need to use a string function to look for the browser version, e.g. "4.x".

Request.ServerVariables("HTTP_Accept_Language" gives the language supported by the browser as set by the user. BUT this may not be what you mean by country. One thing it can do is allow you to redirect users to different pages depending on their language setting.

Reply to this topic