Why is the result of rendering wml (as well as xhtml) pages different from local files and from network server files with the Nokia Mobile Browser 4.0 when using the Nokia WAP Gateway Simulator 4.0? How to configure the system so that I can use also the URL addresses?
When I access the file locally (Mobile Browser Menu -> File -> Open File...) it is rendered ok in the Browser. However, if I copy the same file to a URL in a network server (Apache AdvancedExtranetServer 1.3.27) and access it (Mobile Browser Menu -> File -> Load URL...) the browser displays the source code of the page instead. The source code is the same as the original except that some indent spaces are removed.
The Mobile Browser Diagnostics / Traffic shows that with URL access the Content Data is 785 bytes long and interpreted to be of type 'application/vnd.wap.wmlc; ISO-8859-1' where as with local file access the Content Data is 698 bytes long and the type 'text/vnd.wap.wml;UTF-8'. With Ethereal line sniffer I can see that actually the Apache server set the content length to 785 and the Content-Type HTTP header to 'text/plain, charset=ISO8859-1\r\n'.
The Wap Gateway Simulator Access log: