Slashdot Mirror


Serving WAP Pages?

kfs27 asks: "One of my professor with some of his Java students would like to get into handheld devices and WAP interfaces. They want to first start with building pages which can be viewed on a WAP enabled device. How does one go about serving these pages. Is there a specific WAP webserver or are there modules to Apache? What are the choices and any other suggestions you may have regarding WAP programming."

1 of 16 comments (clear)

  1. MIME Types and HTTP issues by Kelson · · Score: 5, Interesting

    If you have a recent version of Apache, you might already have these in your mime.types file. If you intend to serve any static content, you'll need at least these mappings:

    application/vnd.wap.wmlc wmlc
    application/vnd.wap.wmlscriptc wmlsc
    image/vnd.wap.wbmp wbmp
    text/vnd.wap.wml wml
    text/vnd.wap.wmlscript wmls

    WAP sites are generally regular HTTP servers. The end-user's device contacts a gateway which then makes an HTTP request, compiles the data if it hasn't been already, and sends the compacted version on to the device.

    So it is actually possible to serve static WAP content using nothing more than the base Apache distribution and some added MIME types.