Current time: 04-23-2014, 01:02 AM Hello There, Guest! (LoginRegister)

Post Reply 
Working WML?
06-14-2002, 10:29 AM
Post: #1
Working WML?
Can anyone see a problem with this WML script? I saved it as index.wml and when I uploaded to the DH servers and tested it with Openwave UP.Simulator 4.1, I get this error: "Unsupported content type". This file works great when I tested it locally on WinXP. Can anybody mail me a WML file that works on DH so I can test it with my Simulator? Thank you very much!!!! <?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>

<card id="liquidphire.com" title="Welcome">
<p>
Welcome to liquidphire.com
<a href="./login.wml">login</a>
<a href="./post.wml">post</a>
<a href="./search.wml">search</a>
</p>

</card>

</wml>
Visit this user's website Find all posts by this user
Quote this message in a reply
06-14-2002, 08:36 PM
Post: #2
Working WML?
I'm no expert on WML, but it sounds like you have a problem with the Content-type headers generated by Apache.

To see what headers (and content) you're sending out, you can use http://paulding.net/vsource.html

"Filename.xml" should get a header
Content-type: text/vnd.wap.wml

"Filename.wbmp" should get a header
Content-type: image/vnd.wap/wbmp

"Filename.wmls" should get a header
Content-type: text/vnd.wap.wmlscript

(There will surely be *other* headers as well....)

Apache should handle the first two OK with the default configuration, but the third is missing from the standard mime.types file. You can add it in your .htaccess file with the line

AddType text/vnd.wap.wmlscript wmls

Note that AddType not only allows you to define new types, but allows you to overrule the standard definitions as well, in case your the client software wants something other than what Apache is generating.

Hope this helps!
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: