Re: [PATCH] Siemens SX1 kludge
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | The Kannel Group |
| Message-ID | <[email protected]> |
Paul P Komkoff Jr wrote:
> Ok well, yes I know I was offline fot _too_ _long_. I can't promise I
> will not do the same again :)
>
> Now, to the kannel. Guess what Siemens SX1 latest firmware sends in
> request headers? It sends an \0x80 \0x00! Of course kannel is unable
> to do anything useful, because Accept for application/...wmlc is below
> that line, so voila.
>
> I don't know is this handset behavior conforms to wsp spec, or not
> (have no time to check yet). But anyway, we have plenty of these here,
> and users report that they are aple to browse through our competitors.
>
> Patch attached.
ok, confirming from Paul's sniffing dump he send me, that the Siemens SX1 sends
in WSP hedaers, something like this:
[...]
Accept: application/foobar
Accept:
Accept: vnd/foobar
[...]
meaning for the middle line: 0x80 for Accept and 0x00 for <end-of-string>.
I just reviewed WAP-230-WSP-20010705a.pdf, section 8.4.2.7. According to 8.4.2.1
(basic rules) we have the following BNF style:
Extension-media = *TEXT End-of-string
; This encoding is used for media values, which have no well-known binary encoding
which means in my interpretation '*TEXT' can be any chain of characters with
length 0-n. Right?
If yes, then the SX1 behaviour _IS_ protocol conform to WSP header encoding. And
I would vote +1 for addopting this patch to a more generic form for those WSP
header values that can be of type 'Extension-media' as defined by WSP specs.
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/
-------------------------------------------------------------------