>
New Topic
>
Reply<
Esato Forum Index
>
Sony Ericsson / Sony >
General
> Dev Forum and a dev question
Bookmark topic
Hi all!
I'd really like to se a developer area on Esato. In lack of one, I'll post my question here.
When trying to deliver the correct content to a browser (for instance a WAP browser on a mobile phone), the HTTP header Accept is very helpful. My only question is how to know which of the Accept:ed conent types are the best one for the visiting browser.
My T610 says it can handle application/xhtml+xml, text/html and text/vnd.wap.wml. From experience, I know it is much more suited for xhtml (MP) than regular html. In the Accept header xhtml is listed before html, is that indicating that xhtml is preferred?
In the specs nothing is mentioned on order of content-types, instead they suggest to use a quality indicator. application/xhtml+xml;q=1,text/html:q=0.2 would indicate 100% support for xhtml and 20% support for html, but very few browsers use this...
Any ideas or experience? What do the accept header look like on Nokia phones?
--
Posted: 2003-12-05 17:31:16
Edit :
Quote
I think my-symbian has a good dev forum (only for symbian).
For more you should contact the SE dev site.
--
Posted: 2003-12-06 00:07:29
Edit :
Quote
I don't think that you can infer anything from the order of the Accept header elements. I have seen cases where some of the elements were even duplicated! (I assume this happened when two different teams in the software development group simply combined the types their part of the software supported, without eliminating duplicates).
I think that you have to test each phone type yourself with your own content, using both WML and XHTML, decide which you prefer, then serve that format to the device when you recognize it.
--
Posted: 2004-08-29 14:22:23
Edit :
Quote
Hehe, I started reading this thread and thought "wow exactly what I'm wondering" - until I realized it was my own post

.
What I ended up doing is prioritizing in the order xhtml, html, wml. Seems to land the best results for most platforms.
--
Posted: 2004-08-30 13:57:20
Edit :
Quote
New Topic
Reply