Hi Kavuri,

indeed, if you send exactly same headers as test_ppg, and PPG does not accept them, 
your script language (?) does strange things with headers. Try tcpdump to see exactly
what you are sending to PPG.

Aarno

On 28 Aug 2006, at 10:39, Kavuri Prasad wrote:

Dear Aarno,
 
My only problem with Headers. I am trying to add headers in the same format as test_ppg do. But I am not sure whether my Java application processing it properly or not.
 
I am getting
          WARNING : PPG: headers_acceptable : got unacceptable push headers
          WARNING : PPG: Unparsable push headers, the request unacceptable.
 
I strongly beleive that it is some thing to work on sending headers properly.
 
thanks,
Prasad

 
On 8/28/06, Aarno Syvänen <[EMAIL PROTECTED]> wrote:
Hi Kavuri, 

 
please read comments between lines,

On 28 Aug 2006, at 05:31, Kavuri Prasad wrote:

Hi Aarno,
here is the dump from test_ppg :

--------------------------***************** Dump ******************************----------------------------
./test_ppg " http://localhost:8090/cgi-bin/wappush.cgi?username=foo&password=bar" si.xml my_uncnfpap.xml
2006-08-28 11:28:20 [6605] [0] INFO: an input without a configuration file assumed
2006-08-28 11:28:20 [6605] [0] DEBUG: using si.xml as a content file
2006-08-28 11:28:20 [6605] [0] DEBUG: using my_uncnfpap.xml as a control file
2006-08-28 11:28:20 [6605] [0] DEBUG: Started thread 1 (test/test_ppg.c:push_thread)
2006-08-28 11:28:20 [6605] [1] DEBUG: Thread 1 (test/test_ppg.c:push_thread) maps to pid 6605.
2006-08-28 11:28:20 [6605] [1] DEBUG: we have push content
2006-08-28 11:28:20 [6605] [1] DEBUG: Octet string at 0x9a28918:
2006-08-28 11:28:20 [6605] [1] DEBUG:   len:  977
2006-08-28 11:28:20 [6605] [1] DEBUG:   size: 1024
2006-08-28 11:28:20 [6605] [1] DEBUG:   immutable: 0
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 0d 0a 2d 2d 61 73 64 6c 66 6b 6a 69 75 72 77 67   ..--asdlfkjiurwg
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 68 61 73 66 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79   hasf..Content-Ty
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 70 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f   pe: application/
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 78 6d 6c 0d 0a 0d 0a 3c 3f 78 6d 6c 20 76 65 72   xml....<?xml ver
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 73 69 6f 6e 3d 22 31 2e 30 22 3f 3e 0a 3c 21 44   sion="1.0"?>.<!D
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 4f 43 54 59 50 45 20 70 61 70 20 50 55 42 4c 49   OCTYPE pap PUBLI
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 43 20 22 2d 2f 2f 57 41 50 46 4f 52 55 4d 2f 2f   C "-//WAPFORUM//
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 44 54 44 20 50 41 50 2f 2f 45 4e 22 0a 22 68 74   DTD PAP//EN"."ht
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 74 70 3a 2f 2f 77 77 77 2e 77 61 70 66 6f 72 75   tp://www.wapforu
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 6d 2e 6f 72 67 2f 44 54 44 2f 70 61 70 5f 31 2e   m.org/DTD/pap_1 .
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 30 2e 64 74 64 22 3e 0a 3c 70 61 70 3e 0a 3c 70   0.dtd">.<pap>.<p
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 75 73 68 2d 6d 65 73 73 61 67 65 20 70 75 73 68   ush-message push
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 2d 69 64 3d 22 70 72 61 73 61 64 40 33 31 32 33   -id="[EMAIL PROTECTED]
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 34 22 0a 64 65 6c 69 76 65 72 2d 62 65 66 6f 72   4".deliver-befor
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 65 2d 74 69 6d 65 73 74 61 6d 70 3d 22 32 30 30   e-timestamp="200
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 36 2d 30 39 2d 32 38 54 30 36 3a 34 35 3a 30 30   6-09-28T06:45:00
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 5a 22 0a 64 65 6c 69 76 65 72 2d 61 66 74 65 72   Z".deliver-after
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 2d 74 69 6d 65 73 74 61 6d 70 3d 22 32 30 30 36   -timestamp="2006
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 2d 30 37 2d 32 38 54 30 36 3a 34 35 3a 30 30 5a   -07-28T06:45:00Z
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 22 0a 70 72 6f 67 72 65 73 73 2d 6e 6f 74 65 73   ".progress-notes
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 2d 72 65 71 75 65 73 74 65 64 3d 22 74 72 75 65   -requested="true
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 22 3e 0a 3c 61 64 64 72 65 73 73 20 61 64 64 72   ">.<address addr
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 65 73 73 2d 76 61 6c 75 65 3d 22 57 41 50 50 55   ess-value="WAPPU
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 53 48 3d 2b 36 30 31 33 33 31 38 36 38 35 39 2f   SH=+60133186859/
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 54 59 50 45 3d 50 4c 4d 4e 22 2f 3e 0a 3c 71 75   TYPE=PLMN"/>.<qu
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 61 6c 69 74 79 2d 6f 66 2d 73 65 72 76 69 63 65   ality-of-service
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 20 0a 09 70 72 69 6f 72 69 74 79 3d 22 6c 6f 77    ..priority="low
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 22 20 0a 09 64 65 6c 69 76 65 72 79 2d 6d 65 74   " ..delivery-met
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 68 6f 64 3d 22 75 6e 63 6f 6e 66 69 72 6d 65 64   hod="unconfirmed
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 22 0a 09 6e 65 74 77 6f 72 6b 2d 72 65 71 75 69   "..network-requi
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 72 65 64 3d 22 74 72 75 65 22 0a 09 6e 65 74 77   red="true"..netw
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 6f 72 6b 3d 22 47 53 4d 22 0a 09 62 65 61 72 65   ork="GSM"..beare
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 72 2d 72 65 71 75 69 72 65 64 3d 22 74 72 75 65   r-required="true
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 22 0a 09 62 65 61 72 65 72 3d 22 53 4d 53 22 2f   "..bearer="SMS"/
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 3e 0a 3c 2f 70 75 73 68 2d 6d 65 73 73 61 67 65   >.</push-message
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 3e 0a 3c 2f 70 61 70 3e 0a 0d 0a 2d 2d 61 73 64   >.</pap>...--asd
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 6c 66 6b 6a 69 75 72 77 67 68 61 73 66 0d 0a 43   lfkjiurwghasf..C
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78   ontent-Type: tex
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 74 2f 76 6e 64 2e 77 61 70 2e 73 69 0d 0a 0d 0a   t/vnd.wap.si....
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31   <?xml version="1
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 2e 30 22 3f 3e 0a 3c 21 44 4f 43 54 59 50 45 20   .0"?>.<!DOCTYPE
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 73 69 20 50 55 42 4c 49 43 20 22 2d 2f 2f 57 41   si PUBLIC "-//WA
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 50 46 4f 52 55 4d 2f 2f 44 54 44 20 53 49 20 31   PFORUM//DTD SI 1
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 2e 30 2f 2f 45 4e 22 0a 22 68 74 74 70 3a 2f 2f   .0//EN"."http://
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 77 77 77 2e 77 61 70 66 6f 72 75 6d 2e 6f 72 67   www.wapforum.org
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 2f 44 54 44 2f 73 69 2e 64 74 64 22 3e 0a 3c 73   /DTD/si.dtd">.<s
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 69 3e 0a 3c 69 6e 64 69 63 61 74 69 6f 6e 20 68   i>.<indication h
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 72 65 66 3d 22 68 74 74 70 3a 2f 2f 66 6f 6f 64   ref=" http://food
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 72 65 67 2e 64 6e 73 61 6c 69 61 73 2e 6e 65 74   reg.dnsalias.net
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 3a 38 30 38 30 2f 65 70 63 6c 72 72 74 2e 6a 61   :8080/epclrrt.ja
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 72 22 0a 09 73 69 2d 69 64 3d 22 70 72 61 73 61   r"..si-id="prasa
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 64 40 32 32 33 33 22 20 61 63 74 69 6f 6e 3d 22   [EMAIL PROTECTED]" action=""..cr
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 65 61 74 65 64 3d 22 32 30 30 36 2d 30 38 2d 31   eated="2006-08-1
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 34 54 30 31 3a 33 33 3a 30 39 5a 22 0a 09 73 69   4T01:33:09Z"..si
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 2d 65 78 70 69 72 65 73 3d 22 32 30 30 36 2d 30   -expires="2006-0
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 39 2d 33 30 54 30 30 3a 30 30 3a 30 30 5a 22 0a   9-30T00:00:00Z".
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 09 3e 0a 09 59 6f 75 20 68 61 76 65 20 67 6f 74   .>..You have got
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 20 6d 61 69 6c 2e 0a 3c 2f 69 6e 64 69 63 61 74    mail..</indicat
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 69 6f 6e 3e 0a 3c 2f 73 69 3e 0a 0d 0a 2d 2d 61   ion>.</si>...--a
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 73 64 6c 66 6b 6a 69 75 72 77 67 68 61 73 66 2d   sdlfkjiurwghasf-
2006-08-28 11:28:20 [6605] [1] DEBUG:   data: 2d                                                -
2006-08-28 11:28:20 [6605] [1] DEBUG: Octet string dump ends.

 
This is a *working push contect

2006-08-28 11:28:20 [6605] [1] DEBUG: and headers
2006-08-28 11:28:20 [6605] [1] DEBUG: Dumping HTTP headers:
2006-08-28 11:28:20 [6605] [1] DEBUG:  Octet string at 0x9a15768:
2006-08-28 11:28:20 [6605] [1] DEBUG:    len:  82
2006-08-28 11:28:20 [6605] [1] DEBUG:    size: 1024
2006-08-28 11:28:20 [6605] [1] DEBUG:    immutable: 0
2006-08-28 11:28:20 [6605] [1] DEBUG:    data: 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 6d 75   Content-Type: mu
2006-08-28 11:28:20 [6605] [1] DEBUG:    data: 6c 74 69 70 61 72 74 2f 72 65 6c 61 74 65 64 3b   ltipart/related;
2006-08-28 11:28:20 [6605] [1] DEBUG:    data: 20 62 6f 75 6e 64 61 72 79 3d 61 73 64 6c 66 6b    boundary=asdlfk
2006-08-28 11:28:20 [6605] [1] DEBUG:    data: 6a 69 75 72 77 67 68 61 73 66 3b 20 74 79 70 65   jiurwghasf; type
2006-08-28 11:28:20 [6605] [1] DEBUG:    data: 3d 22 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 6d   ="application/xm
2006-08-28 11:28:20 [6605] [1] DEBUG:    data: 6c 22                                             l"
2006-08-28 11:28:20 [6605] [1] DEBUG:  Octet string dump ends.

 
This was first push header, telling the Content-Type

Reply via email to