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"?>

Welcome to login post search

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

“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!