Re: [PATCH] Siemens SX1 kludge

Aarno Syvänen <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
You are right, IMHO. "Extension media" means "free textual 
representation",
which includes an empty string.

Of course, one likes to know why Siemens is using such a useless seeming
header. Does Siemens  phone work without it? (Be generous what use 
accept,
etc.)

Aarno

On 21.1.2005, at 09:21, Stipe Tolj wrote:

> Vjacheslav Chekushin wrote:
>
>> Just remark.
>> SX1 behavior _NOT_ conforms to wap specification, because besides 
>> general
>> encoding there is well-known encoding for Accept header:
>> 8.4.2.7 Accept field
>> The following rules are used to encode accept values.
>> Accept-value = Constrained-media | Accept-general-form
>> Accept-general-form = Value-length Media-range [Accept-parameters]
>> Media-range = (Well-known-media | Extension-Media) *(Parameter)
>> Accept-parameters = Q-token Q-value *(Accept-extension)
>> Accept-extension = Parameter
>> Constrained-media = Constrained-encoding
>> Well-known-media = Integer-value
>> ; Both are encoded using values from Content Type Assignments table 
>> in Assigned Numbers
>> Q-token = <Octet 128> )
>> And we have: Accept-general-form => Value-length Media-range 
>> [Accept-parameters]
>> So value-length is 0 and Media-range (mandatory) is absent.
>> So Accept header must be either as string "Accept: ..." or "80 ..."
>> and in the last case it _MUST_ be encoded as Accept-value.
>
> ok, agreeing for the 'Accept-value = Constrained-media | 
> _Accept-general-form_' value. _BUT_ what about _Constrained-media_?
>
> If comes up to Extension-media where the reference BNF is used. IMO 
> the Accept encoded byte 0x80 followed by a 0*TEXT (hence nothing), 
> followed by a end-of-string 0x00 is allowed then.
>
> Comments on this please.
>
> Stipe
>
> mailto:stolj_{at}_wapme.de
> -------------------------------------------------------------------
> Wapme Systems AG
>
> Vogelsanger Weg 80
> 40470 Düsseldorf, NRW, Germany
>
> phone: +49.211.74845.0
> fax: +49.211.74845.299
>
> mailto:info_{at}_wapme-systems.de
> http://www.wapme-systems.de/
> -------------------------------------------------------------------
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.