Configuring Your Web Server

The easiest way to serve WML contents is to use an HTTP server. Unless your WAP site is listed on a portal maintained by a mobile network provider, users will need to type the URL of your site on their device manually—a complicated task with only a phone's buttons to interface with. Although www is the de facto standard hostname for HTTP servers, wap seems to be emerging as a comparable standard for servers containing WAP applications.

Tip

Most WML pages use the naming convention of http://wap.sitenamehere.com

However, simply throwing your WAP applications up on a standard HTTP server will not allow users to view content on their phones. The server must "tell" the WML browser that it is about to receive a WML page ...

Get WAP Development with WML and WMLScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.