Go Back   Wireless and Wifi Forums > Cellular Communications > Cellular Newsgroups > uk.telecom.mobile
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-26-2006, 10:49 PM
Andrew Gabriel
Guest
 
Posts: n/a
Default Simple WAP from Nokia 6310i

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...

GET /x HTTP/1.1
accept: application/vnd.wap.wtls-ca-certificate, text/plain, text/x-vcard,
text/x-vcalendar, application/x-wap-prov.browser-settings,
application/x-nokia.settings, application/vnd.wap.wmlc,
application/vnd.wap.wmlscriptc, application/x-NokiaGameData,
image/vnd.wap.wbmp, image/gif, application/x-wap-prov.browser-bookmarks,
text/vnd.sun.j2me.app-descriptor, application/java,
application/java-archive, application/x-java-archive,
text/x-wap-prov.browser-settings;q=0.125,text/vnd.wap.wml;q=0.125,
text/vnd.wap.wmlscript;q=0.125,image/bmp;q=0.125,image/png;q=0.125,
image/jpeg;q=0.125,image/x-jng;q=0.125,video/x-mng;q=0.125,
image/x-mng;q=0.125,image/x-bmp;q=0.125,
text/x-wap-prov.browser-bookmarks;q=0.125
accept-charset: ISO-8859-1, UTF-8;Q=0.80, ISO-10646-UCS-2;Q=0.60
accept-language: en
host: 123.45.67.89
user-agent: Nokia6310i/1.0 (5.22) Profile/MIDP-1.0 Configuration/CLDC-1.0
accept-encoding: deflate, gzip, compress;q=0.1, identity
Via: WSP/1.0 ldgwsl22 (XMG 724Solutions HTG XMG-31_VODAFONE_M3_B015 20060304.165249)
Connection: close

HTTP/1.1 200 OK
Date: Sat, 23 Sep 2006 09:44:23 GMT
Server: Apache/1.3.31 (Unix) mod_perl/1.29
Content-Location: x.txt
Vary: negotiate
TCN: choice
Last-Modified: Sat, 23 Sep 2006 09:41:07 GMT
ETag: "a16-d-45150133;45150126"
Accept-Ranges: bytes
Content-Length: 13
Connection: close
Content-Type: text/plain

Hello World

--
Andrew Gabriel

Reply With Quote
  #2 (permalink)  
Old 09-27-2006, 09:38 AM
Daniel James
Guest
 
Posts: n/a
Default Re: Simple WAP from Nokia 6310i

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.

Cheers,
Daniel.



Reply With Quote
  #3 (permalink)  
Old 09-27-2006, 11:34 PM
Andrew Gabriel
Guest
 
Posts: n/a
Default Re: Simple WAP from Nokia 6310i

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.

--
Andrew Gabriel

Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NEWS: Nokia Pays Qualcomm $20M for Licenses John Navas alt.cellular.nokia 0 04-06-2007 07:06 PM
Problem with connect nokia 6310i and plantronics 320 to computer bzykowy alt.cellular.verizon 0 10-26-2006 02:24 PM
Oxygen Phone Manager II v2.11.5 for Symbian OS smartphones is just released! Oxygen Software alt.cellular.nokia 3 10-24-2006 03:27 PM
Nokia 6310i GSM ok on Cingular? JCorsica alt.cellular.cingular 1 10-08-2006 11:43 PM
More Brew nonsense Ange1o DePa1ma alt.cellular.verizon 2 09-30-2006 11:11 PM


All times are GMT. The time now is 04:33 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45