Forums

ASP

This topic is locked

Grab browser details

Posted 01 Mar 2002 12:12:47
1
has voted
01 Mar 2002 12:12:47 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 01 Mar 2002 17:18:51
01 Mar 2002 17:18:51 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