Re: Packing User Agent Header.

2002-09-23 Thread Aarno Syvänen


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).

 2In 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





Packing User Agent Header.

2002-09-21 Thread Nigar Sultana

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.

2In 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.
we want this user agent to be packet and send it with in the http 
header

regards
Nigar