Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2002
    Location
    Central New York
    Posts
    87
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HTTP/WAP Redirect

    The company wants to have portions of it's website accessible through Cell Phones and other wireless-enabled portable devices. All good and well, but they don't want to confuse people with two different URLS (www.domain.com and wap.domain.com). So It's up to me to come up with some redirect for the wireless people.

    I've seen some scripts using PHP that detects the browser and redirects accordingly... but with over 160 different brands of web enabled cellphones on the market alone I don't want to have to maintain a database with browser IDs.

    From what I've pieced together, traditional web browsers connect using HTTP while wireless browsers connect using WAP. Is there a way that I could detect the protocol being used instead of the browser ID and redirect accordingly? I don't see any $USER_PROTOCOL variables.
    Timothy Boronczyk

  • #2
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    404
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nope...the easy way to detect wireless devices is by HTTP_ACCEPT...you detect if the agent accepts certain encoding (or if it is WindowsCE for safety) and redirect:

    See this discussion we had on it a bit ago:
    http://codingforums.com/showthread.p...threadid=11645
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Very helpful information. (Hits CTRL+D)
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #4
    New Coder
    Join Date
    Dec 2002
    Location
    Central New York
    Posts
    87
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you.
    Timothy Boronczyk


  •  

    Posting Permissions

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