> Here goes two minor bugs for T610, one is really not important and the
> other I don't know if it would affect anything because our CMG gateway
> also doesn't support it and Kannel is now patched to workaround it.
>
> 1. Error in headers sent.
> SE-T610 sends an erroneous header in WSP data: "Connection:
> Encoding-Version".
>
> Here's a packet dump:
> 80 9d 80 9e 80 a1 80 94 80 a9 80 95 80 61 70 70 .............app
> 6c 69 63 61 74 69 6f 6e 2f 78 68 74 6d 6c 2b 78 lication/xhtml+x
> 6d 6c 00 80 61 70 70 6c 69 63 61 74 69 6f 6e 2f ml..application/
> 76 6e 64 2e 77 61 70 2e 78 68 74 6d 6c 2b 78 6d vnd.wap.xhtml+xm
> 6c 00 80 82 80 61 70 70 6c 69 63 61 74 69 6f 6e l....application
> 2f 76 6e 64 2e 77 61 70 2e 6d 6d 73 2d 6d 65 73 /vnd.wap.mms-mes
> 73 61 67 65 00 80 61 70 70 6c 69 63 61 74 69 6f sage..applicatio
> 6e 2f 6a 61 76 61 2d 61 72 63 68 69 76 65 00 80 n/java-archive..
> 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 61 76 61 application/java
> 00 80 61 70 70 6c 69 63 61 74 69 6f 6e 2f 76 6e ..application/vn
> 64 2e 6f 6d 61 2e 64 64 2b 78 6d 6c 00 80 74 65 d.oma.dd+xml..te
> 78 74 2f 63 73 73 00 80 80 83 da 81 83 81 84 81 xt/css..........
> ea 81 03 02 03 e8 b5 68 74 74 70 3a 2f 2f 77 61 .......http://wa
> 70 2e 73 6f 6e 79 65 72 69 63 73 73 6f 6e 2e 63 p.sonyericsson.c
> 6f 6d 2f 55 41 70 72 6f 66 2f 54 36 31 30 52 32 om/UAprof/T610R2
> 30 31 2e 78 6d 6c 00 a9 53 6f 6e 79 45 72 69 63 01.xml..SonyEric
> 73 73 6f 6e 54 36 31 30 2f 52 32 30 31 20 50 72 ssonT610/R201 Pr
> 6f 66 69 6c 65 2f 4d 49 44 50 2d 31 2e 30 20 43 ofile/MIDP-1.0 C
> 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2f 43 4c 44 onfiguration/CLD
> 43 2d 31 2e 30 00 b3 80 b2 81 b2 82 89 45 6e 63 C-1.0........Enc
> 6f 64 69 6e 67 2d 56 65 72 73 69 6f 6e 00 45 6e oding-Version.En
> 63 6f 64 69 6e 67 2d 56 65 72 73 69 6f 6e 00 31 coding-Version.1
> 2e 33 00 .3.
>
> - in the last four lines, we have "43 2d 31 2e 30 00" which are the
> ending string for "User-Agent" header.
> - Then a 0xb3 which is 0x80 (well known value) + 0x33 (Bearer-Indication
> header) and 80, for any_ipv4 (0x80 + 0x00)
> - b2 for Accept-Application, 81 for push.sia
> - b2 again and 82 for wml.ua
> - Then there is an 89 (80 + 09), which stands as "Connection" header
> - 0x45 is between 0x20 and 0x1F, thus is a null terminated string,
> namely "Encoding-Version"
> - After, there is a named header, "Encoding-Version" and a named value,
> "31 2e 33 00", for "1.3"
>
> I don't understand the "Connection: Encoding-Version". It seems like an
> error.
>
>
>
>
> 2. SE-T610 is missing one byte when it does a
> application/vnd.wap.multipart.form-data POST.
>
>
> Here's another packet dump, with comments:
> -SE-T610 example:
> -02 - mime header (uintvar) - 2 parts
> -* mime 1
> -0e - headers length (uintvar) - 14 bytes
> -11 - data length (uintvar) - 17 bytes
> -* content-type [WSP:8.4.2.24]
> -03 - length [00-19 = length, 80-x=well known, 20-79(alpha)=text]
> -83 - text/plain [charsets.txt]
> -81 - charset keyword [WSP:A:Table38]
> -84 - iso-8859-1 (80 + 4) [WSP:A:Table42]
> -headers:
> -ae - content-disposition [wsp:8.4.2.53]
> -08 - length 8 (2 + 6:name1)
> -80 - form-data (81=attachment, 82=inline)
> -85 - name keyword [WSP:A:Table38]
> -6e 61 6d 65 31 00 - name1 (6)
> -data:
> -76 61 6c 2d 61 c3 a3 61 c3 a7 c3 87 2d 75 65 31 00 - val... (17)
> -* mime 2
> -0e - headers length (uintvar) - 14
> -07 - data length (uintvar) - 7
> -* content-type [WSP:8.4.2.24]
> -03 - length [00-19 = length, 80-x=well known, 20-79(alpha)=text]
> -83 - text/plain [charsets.txt]
> -81 - charset keyword [WSP:A:Table38]
> -84 - iso-8859-1 (80 + 4) [WSP:A:Table42]
> -headers:
> -ae - content-disposition [wsp:8.4.2.53]
> -08 - length 8 (2 + 6:name1)
> -80 - form-data (81=attachment, 82=inline)
> -85 - name keyword [WSP:A:Table38]
> -6e 61 6d 65 32 00 - name2 (6)
> -data:
> -76 61 6c 75 65 32 - value2 (6) ???? should be 7!!
>
> As you can see, in mime part 2, you are defining data length as 7 bytes,
> but data is only six bytes, missing last 0x00 character. This is not a
> gateway error because other devices sends this packet correctly.
>
> This may cause problems with other gateways, but as I said before, our
> CMG version is not supporting multipart/form-data at all and thus I
> don't know its behaviour.
> In latest Kannel CVS version, I've assumed that a missing 0x00 is OK and
> thus T610 works.
>
> Regards,
>
> Bruno Rodrigues
> Vodafone Telecel Technology and Information Department
> Kannel developer at free time
>
>
--
<br/>