Navigate
Home
ArticleWiki
Forum
Journal
Search
Newsletter
Links
Tech News
expertsrt.com
Welcome Guest.
Username:

Password:

Remember me

WAP Device Detection
Welcome, Guest. Please login or register.
December 02, 2008, 01:40:58 PM
11304 Posts in 1248 Topics by 498 Members
Latest Member: katCheeme
Experts Round Table Network  |  Serverside Technology  |  PHP  |  WAP Device Detection « previous next »
Pages: [1]
Author Topic: WAP Device Detection  (Read 465 times)
CrYpTiC_MauleR
Site Builder

Offline Offline

Posts: 489



WWW
« on: January 25, 2006, 07:04:22 PM »

Been looking online on how to detect WAP devices and some things came up. One of course is the HTTP_ACCEPT header and seeing if it has wap MIME types. Two other things I came across was looking for

$_SERVER["HTTP_X_WAP_PROFILE"] and $_SERVER["HTTP_PROFILE"]

both were pretty sketchy on details but seems carriers and/or browsers send that HTTP header. I was wondering if anyone has other means of detecting WAP devices and can maybe even elaborate on the above methods. I'm trying to make a WAP site so users can access content and such from those devices but detecting them is the first step =o(

Thanks!


-Nick
Logged

[x] Fight | www.crypticmauler.com
"You must be
nicholassolutions
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #1 on: January 29, 2006, 08:49:09 PM »

I don't have much experience with this, but it seems that there are many different headers sent by WAP browsers. For example, thse guys actually SELL the headers to people who are interested: http://webcab.de/wbhh.xhtml

If you look at the examples, it doesn't look like all WAP browsers necessarily send the headers you mentioned. If you buy such a database of headers (or can find enough free ones), you might be able to use PHP's getallheaders() and parse them to see if they match known headers for a WAP browser, then serve content accordingly.

http://www.thewirelessfaq.com/ has some pretty helpful information (at least for someone like me who is not familiar), and http://www.thewirelessfaq.com/3.3.asp offers some WAP emulators that might be helpful in testing ideas.

This forum also has some potentially interesting info:
http://discussion.forum.nokia.com/forum/showthread.php?t=68342

Sorry I can't give you a more informed answer  :?
Logged
VGR
Mentor

Offline Offline

Posts: 682



WWW
« Reply #2 on: January 30, 2006, 01:03:55 AM »

yes. Given all the (true) arguments above, I would definitely stick with parsing the HTTP_ACCEPT value.
Logged

techie overlord, answers all kind of questions on http://www.europeanexperts.org
Pages: [1]
« previous next »
    Jump to: