
| 7.23 How can I tell which WML version a device supports? |
|
Since the different WML specifications contain a large number of new/updated functionality, it's nice to know which version of WML the device you are sending WML code to supports. James Skinner (James.Skinner@nortelnetworks.com) has found that devices that support WML 1.2 should (or rather must) add a version number in the so called Accept header send to the web server which the request. In more detail, the version number appears after string text/vnd.wap.wml A WML 1.1 device will an Accept header looking something like this: Accept: image/vnd.wap.wbmp, text/vnd.wap.wml, */* ..while a WML 1.2 device will send a header looking something like this: Accept: image/vnd.wap.wbmp, text/vnd.wap.wml;level=1.2, */* ...indicating that this is a device that accepts WML 1.2 code. The Accept header can be read by just about any script language, such as PHP. |
| [ Main ] [ 07 - Making it look fancy ] |
| © 2001, 2002, 2003, 2004 This document is the collective property of the WMLProgramming and OUI-support mailing lists. |