Re: Query on last wsp_headers.c patch

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
Paul Keogh wrote:
> 
> Hi Stipe,
> 
> Could you give us some details on the last wsp_headers.c patch ?
> 
> cvs diff -r 1.4 wsp_headers.c (in directory D:\dev\gateway\wap\)
> Index: wsp_headers.c
> ===================================================================
> RCS file: /home/cvs/gateway/wap/wsp_headers.c,v
> retrieving revision 1.4
> retrieving revision 1.5
> diff -r1.4 -r1.5
> 2848a2849
> >     octstr_append_char(packed, 0X01);
> 
> What exactly does the 0x01 value represent here ?

we discovered this while figuring out why MMS notifications haven't
been working when using PPG to send the content.

This push WSP headers must have the Content-type header as the first
byte in the headers group.

The 0x01 means "the length of the Content-type header", so 1 bytes
follows. And then the encoding of the WSP cotent-type itself.

[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [email protected]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are
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.