Re: Packing User Agent Header.
Aarno Syvänen <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
On Saturday, September 21, 2002, at 04:02 PM, Nigar Sultana wrote:
> Hello All
>
> i want to have few clarification regarding the kannel wap gateway.
> Listing out them:
>
> 1>#define PDU(name, docstring, fields, is_valid) struct name { fields
> } name;
> what does this declaration means. we were not able to understand it.
This defines the structure itself. When called with PDU(something) you
get after the
expansion:
struct something {
fields
} something;
Then (conceptually) fields is expanded.
It may help to use gcc -E (or whatever option indicates precompiling
only in your
compiler).
>
> 2>In the Get request header portion we have added the User Agent Name
> and Value,
> The User-agent:0x29
> The Value can be either Nokia or Ericsson
> Wap box is throwing an error: "Error parsing application-header" what
> might be the problem.
This is because value should be a text string. Grab User-Agent headers
your phone is
sending or try using any text string as a value.
Aarno