I'm trying to pick up a simple text file from my web server using my
Nokia 6310i. The phone is reporting "file format unknown". The MIME
type is text/plain which the phone lists as acceptable in its HTTP
request. Any ideas what's wrong? Here's the request and response as
captured in a trace at the web server (I've wrapped the accept: line
here). It appears to have worked OK from the web server's viewpoint...
In article news:<4519ae6e$0$634$5a6aecb4@news.aaisp.net.uk>, Andrew Gabriel
wrote:
> I'm trying to pick up a simple text file from my web server using my
> Nokia 6310i.
How are you trying to do that? With the phone's WAP browser?
> The phone is reporting "file format unknown". The MIME type is
> text/plain which the phone lists as acceptable in its HTTP request.
I played around with this stuff a couple of years ago (and so have
forgotten most of what I discovered) but I think the problem is that the
6310i may indeed be able to receive a text/plain message but the inbuilt
WAP browser doesn't know how to display it -- I believe it can only display
WML pages.
The server trace you gave looks like a successful HTTP exchange, so I think
that part is working.
I did manage to get a Java MIDlet to download and display a text/plain
message on the 6310i, but I think the JVM handles communications
differently from the WAP browser, so that may not be relevant.
In article <VA.00000ef8.0062c372@nospam.aaisp.org>,
Daniel James <wastebasket@nospam.aaisp.org> writes:
> In article news:<4519ae6e$0$634$5a6aecb4@news.aaisp.net.uk>, Andrew Gabriel
> wrote:
>> I'm trying to pick up a simple text file from my web server using my
>> Nokia 6310i.
>
> How are you trying to do that? With the phone's WAP browser?
Yes.
>> The phone is reporting "file format unknown". The MIME type is
>> text/plain which the phone lists as acceptable in its HTTP request.
>
> I played around with this stuff a couple of years ago (and so have
> forgotten most of what I discovered) but I think the problem is that the
> 6310i may indeed be able to receive a text/plain message but the inbuilt
> WAP browser doesn't know how to display it -- I believe it can only display
> WML pages.
Yep, that was it.
I encoded it as text/vnd.wap.wml and now it works fine.