Problem viewing web content

View: New views
2 Messages — Rating Filter:   Alert me  

Problem viewing web content

by JK-31 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

My problem: wml files are displayed well if they are stored locally. However, this is not true for the very same decks when uploaded on my server.

Since other wml pages (e.g. http://de.wap.wikipedia.org/) seem to work fine, there seems to be something wrong with my http server, or its configuration.

I have already discovered that the server does not recognize wml files, and thus sends them with content type 'text/plain'. This cannot work, of course, and explains why FF first had displayed the file in its source code form.

I then used PHP to send the correct MIME type 'application/vnd.wap.xhtml+xml'. Unfortunately this hasn't lead to success: FF now displays the "open with/save" dialog box instead of using wmlbrowser. If I then save the file with a .wml extension, this local file can again be viewed without problems.

Any suggestions?

Thanks in advance, and kind regards

Johannes Knaupp

PS:
1. Test file: http://jknaupp.de/test.php

2. My configuration:
- MS-Windows XP SP 2
- FF 3.0.1
- wmlbrowser 0.7.18:
        - browsing of local wml files: enabled
        - offering wml to web servers: enabled or disabled (has shown not to
          make a difference).
- web server: Apache 2.0.50; provider claims that it supports WAP.

_______________________________________________
Wmlbrowser mailing list
Wmlbrowser@...
https://www.mozdev.org/mailman/listinfo/wmlbrowser

Re: Problem viewing web content

by Matthew Wilson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

JK wrote:

> Hi all,
>
> My problem: wml files are displayed well if they are stored locally. However, this is not true for the very same decks when uploaded on my server.
>
> Since other wml pages (e.g. http://de.wap.wikipedia.org/) seem to work fine, there seems to be something wrong with my http server, or its configuration.
>
> I have already discovered that the server does not recognize wml files, and thus sends them with content type 'text/plain'. This cannot work, of course, and explains why FF first had displayed the file in its source code form.
>
> I then used PHP to send the correct MIME type 'application/vnd.wap.xhtml+xml'. Unfortunately this hasn't lead to success: FF now displays the "open with/save" dialog box instead of using wmlbrowser. If I then save the file with a .wml extension, this local file can again be viewed without problems.
>
> Any suggestions?

The MIME type for WML is text/vnd.wap.wml

As far as I can tell, application/vnd.wap.xhtml+xml is some kind of
mobile XHTML document format, which wmlbrowser does not support.

Matthew
_______________________________________________
Wmlbrowser mailing list
Wmlbrowser@...
https://www.mozdev.org/mailman/listinfo/wmlbrowser