Publishing WAP Content
After having my new wireless phone several days and a few calls to tech support I still wasn't able to visit any URL's typed in my phone's browser; I could only access content through T-mobile's portal. So I started digging around and this is a quick rundown of what I dug up to publish content online for my WAP phone.
Side-Note
These steps were preceeded by numerous "your client is not allowed to access the requested object" and obscure gateway errors.
Server Configuration
First off I couldn't determine if the requests were sent correctly and what was happening with the user-agent, request, etc so I checked my logs and it indicated my unique user-agent, that I was using http 1.1, and making GET requests, and a successful response by Apache (my site is hosted on version 1.3.x, and the response code was 200) so everything looked like I expected it to. Next, I started searching online for a module or server information which led me to w3.org where I found a posting related to WAP indicating I simply needed to make Apache aware of the WAP-type files as it responds to requests for this content (since the content-type is used in the request-response handshake that my phone and the server will do with each file request). As I don't have root access to the Apache conf(ig) files I simply put these extension-type declarations in an .htaccess file:
AddType text/vnd.wap.wml .wml AddType image/vnd.wap.wbmp .wbmp AddType application/vnd.wap.wmlc .wmlc AddType text/vnd.wap.wmlscript .wmls AddType application/vnd.wap.wmlscriptc .wmlsc
RewriteEngine on
RewriteCond %{HTTP_ACCEPT} text/vnd.wap.wml [NC]
RewriteCond %{HTTP_ACCEPT} !text/html
RewriteRule ^/?$ http://host.tld/file.wml [L,R]