Monday, 9 July 2007

WML / WAP page won't display (WML debugging)

WML / WAP browsers tend to keel over and die if they encounter anything they don't like. If your WML / WAP browser isn't displaying your page then check the following: 1. Ensure the WML is well formed and valid, there is a W3 Schools WML validator you may find very handy. 2. WML / WAP browsers refuse to work if the content type you are returning in the HTTP 200 response isn't Content-Type: text/vnd.wap.wml, so ensure this is the case by logging or sniffing the communication (Ethereal is my weapon of choice). 3. The most strange behaviour I've seen is a WAP browser not displaying anything because the file extension of the file being displayed isn't .wml !!!

No comments: