SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Identifying Windows XP using ASP

    I need to find out how browsers identify themselves in WinXP in the UserAgent header. For example, I would use the following to identify the operating system is NT

    if (Instr(UA, "winnt") > 0) or (Instr(UA, "windows nt") > 0) then strOpSys = "Windows NT"

    Can anyone help mw with the XP UserAgent? I am using Win2K at the moment.

    Many thanks
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    XP identifies itself as "Windows NT 5.1".

    Funny that Microsoft hails a .1 release as so great.

    --Vinnie

  3. #3
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)

  4. #4
    SitePoint Enthusiast Utopia's Avatar
    Join Date
    Sep 2002
    Location
    United Kingdom
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Request.ServerVariables("HTTP_USER_AGENT")

    http://ultradev.buzzinet.co.uk/asp/t...bles/index.asp
    Last edited by Utopia; Sep 23, 2002 at 10:17.

  5. #5
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks chaps - that's just what I needed!

    Nice and straightforward.
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •