Vjacheslav Chekushin wrote:
> 
> Hi, list
> 
> In wsp_server_method_states.def:
> 
>                  /*
>                   * The Siemens S35 adds an extra NUL character to the end
>                   * of the request body which may not work with certain cgi
>                   * scripts. It is removed here by truncating the length.
>                   */
>                  req_body_size = octstr_len(pdu->u.Post.data);
>                  if(octstr_get_char(pdu->u.Post.data,(req_body_size - 1)) == 0)
>                          octstr_truncate(pdu->u.Post.data,(req_body_size - 1));
> 
> I encounter the problem with truncated NULL for binary POSTs.
> Some samsung phones send this trailing NULL in jpegs. WAP gw truncate it.
> Samsung phone fails to receive such truncated message.
> I remove this ambiguous truncation to fix the problem.
> I'm not sure about these "certain cgi scripts" but to remove some data from POST
> not a good solution.

hmmm, cvs says this section has been checked in revision 1.1 from
'dark', which is Richard Brakman (AFAIR). and the date is Mon Nov 20
19:55:54 2000 UTC (3 years ago), which is pretty old.

@Aarno, any idea why this truncing was necessary and if we can
consider this as a BUG workarround of the specific device which we can
resolve?

Stipe

mailto:[EMAIL PROTECTED]
-------------------------------------------------------------------
Wapme Systems AG

M�nsterstr. 248
40470 D�sseldorf, NRW, Germany

phone: +49.211.74845.0
fax: +49.211.74845.299

mailto:[EMAIL PROTECTED]
http://www.wapme-systems.de/
-------------------------------------------------------------------

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.2 (Cygwin)

mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS
OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2
nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT
dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv
bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID
AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl
OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ
K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H
g2HyLAEKQIp30Q==
=aYCI
-----END PGP PUBLIC KEY BLOCK-----

Reply via email to