|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||||
|
|||||
|
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. Code:
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 18 Apr 2006 13:44:34 GMT Cache-Control: no-cache X-Powered-By: ASP.NET Pragma: no-cache Cache-Control: no-cache,must-revalidate Connection: Keep-Alive Content-Length: 1327 Content-Type: text/vnd.wap.wml Expires: Tue, 18 Apr 2006 13:44:34 GMT Cache-control: private --[ HEADER END ]------ xml Code:
Thanx Last edited by jabba_29 : April 19th, 2006 at 05:02 AM. Reason: tidied up a bit ;) |
|
#2
|
||||
|
||||
|
Hi,
Quote:
Code:
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 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. Hope that helps.
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ 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. __________________ |
|
#3
|
|||
|
|||
|
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?? |
|
#4
|
||||
|
||||
|
Your page should be
PHP Code:
Last edited by jabba_29 : June 18th, 2006 at 06:27 AM. Reason: typo |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > WML headers |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|