×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Posts
    1,733

    How to detect microbrowser clients in ASP?

    Posted by Murillo Martins, murillo@unitech.com.br
    on June 14, 2000 at 17:44

    I want to make an automatic switch to a WML page when the wireless client points to my default.asp home.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Posts
    1,733

    RE: How to detect microbrowser clients in ASP?

    Posted by Jim Lum, jimlum@yahoo.com
    on June 17, 2000 at 00:30

    I don't use ASP, but in Perl, I've been able to setup an automatic redirection by:

    1) Checking the HTTP_ACCEPT header, and,

    2) If it contains "wml", serve a "Location: http://mywmlpage.com", and,

    3) If it doesn't contain "wml", serve a "Location: http://myhtmlpage.com".

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Posts
    1,733

    RE: How to detect microbrowser clients in ASP?

    Posted by Scott McLain, sjmclain@hotmail.com
    on June 21, 2000 at 17:33

    Here's a snippet of the code we use to see if the browser is a phone or IE/Netscape:

    str = Request.ServerVariables("HTTP_USER_AGENT&quot

    if Ucase(Left(str,1)) = "N" Or Ucase(left(str,2)) = "UP" then
    Response.ContentType = "text/vnd.wap.wml"
    Response.Redirect("http://www.phoneonline.com/menu.asp&quot
    end if

Posting Permissions

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