Discuss WML headers in the Mobile Programming forum on Dev Shed. WML headers Mobile Programming forum discussing development for mobile technologies from basic mark-up languages
such as WML and XHTML MP to server generated code and applications. Widsets, SMS, gateway and server
set up are also covered here.
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.
Posts: 4
Time spent in forums: 41 m 45 sec
Reputation Power: 0
WML headers
Hi I build a wap site, and it is supposed to be WML 1.1 compatible.
So the first question is how can I validate my code that it is WML 1.1 and not another version of WML.
The Second question is .What are those headers that appear in my code when I view source in an emulator.
And why should I user the
<?xml version="1.0" encoding="iso-8859-7"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
???
I will show you a sample.
HTTP/1.1 200 OK // It was a request and it was OK
Server: Microsoft-IIS/5.0 // your hosts server
Date: Tue, 18 Apr 2006 13:44:34 GMT // date
Cache-Control: no-cache // the page won't cache
X-Powered-By: ASP.NET // software you are using
Pragma: no-cache // the page won't cache
Cache-Control: no-cache,must-revalidate // the page won't cache
Connection: Keep-Alive // server setting
Content-Length: 1327 // size of the fiel
Content-Type: text/vnd.wap.wml // sending as wap content type
Expires: Tue, 18 Apr 2006 13:44:34 GMT // expires
Cache-control: private // again caching thing, more suitable for IE, but OK
There was a question posted in the PHP forums the other day and someone gave quite a good explaination about what everything meant, can't find it off-hand.
As to your last question: because you just should
But in all seriousness, it enables the browser / device to understand what it is downloading and can interprete it accordingly.
Check the resources link in my signature, there are some pretty useful links in it.
Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.
__________________
Posts: 4
Time spent in forums: 41 m 45 sec
Reputation Power: 0
thanx
ok thanks .
One last thing .. when i validate my WML code i validate only the content between the <wml>...</wml> tags
not the header info and the <XML> that tells the browser that the content is about wml correct??