1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Rep Power

    configure apache 2 to parse wml pages


    I have added these lines to apache2 httpd.conf file.

    #MIME types for WAP

    #For normal WML pages
    AddType text/vnd.wap.wml .wml

    #For WML embedded graphics
    AddType image/vnd.wap.wbmp .wbmp

    #End MIME types for WAP

    But when i try to open a wml page the browser asks me wether i want to download the page instead of showing the contents of the page. The wap browser i use is yourWAP wireless companion. I am using windows XP.Plz help me.
    Here is my wml code.

    <!-- begin card -->
    <do type="accept">
    <go href="#card2"/>
    This is the first card.
    Press OK to go to the second card.
    <!-- begin card -->
    <card id="card2">
    This is the second card.


    Thanks in advance,
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Beverly Hills
    Rep Power

    Several problems here

    First, get rid of the AddType directives. Those MIME types are already set correctly in mime.conf, and you don't need to set them again.

    Second, your WML files look fine, except, remember, WML is a subset of XML, and your XML files are missing something:

    <?xml version="1.0"?>
    This should be the very first part of your wml file. Otherwise it is not properly identified as an XML file, and so your emulator isn't parsing it and can only save it for some other program.

    Also, I think the id attribute is required for the card object. You might want to check on that.

    Or you can skip all of these problems and just do the whole thing automatically: http://chiralsoftware.net/products.html

Similar Threads

  1. How to configure and set up Apache??
    By dsantamassino in forum Apache Development
    Replies: 4
    Last Post: May 20th, 2004, 09:48 PM
  2. how to configure Perl in Apache Server (Linux)
    By sendhilb in forum Perl Programming
    Replies: 5
    Last Post: February 2nd, 2004, 09:49 AM
  3. compile vhosts
    By the-griff in forum Linux Help
    Replies: 0
    Last Post: November 5th, 2003, 08:07 PM
  4. Problem compiling in Cygwin
    By dtm78 in forum C Programming
    Replies: 1
    Last Post: February 24th, 2003, 05:06 AM
  5. how to configure apache to work with wml ?
    By datagram in forum Mobile Programming
    Replies: 2
    Last Post: March 3rd, 2001, 09:46 PM

IMN logo majestic logo threadwatch logo seochat tools logo