We are running apache server on linux and are having problems with an actual cell phone reading our content (specifically the content where we have php generating wml). The following code, saved in a file called index2.php:
<?php
Header( "Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \" -//WAPFORUM//DTD WML 1.1//EN\" ";
echo " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<card><p align ="center">Welcome to WAPI!<br /></p><p>
username ? <input name="username" type="text" maxlength="30" />
password ? <input name="password" type="password" maxlength="32" />
<do type="accept" label="Login">
<go href="waphello.php" method="post">
<postfield name="username" value="$(username)" />
<postfield name="password" value="$(password)" />
</go></do></p></card>
</wml>
This page loads fine in the UP.SDK emulator but when we try to access it on an actual WAP phone we get "1015 invalid content type".
Can anyone help? I know its an apache configuration.