What is your full PAP document like (the whole multipart) ? It seems to
me header delimiter is missing there.

Aarno

On 20.3.2004, at 20:06, Eric Carlson wrote:

Please, can someone spot whats wrong here, I still have not succeeded
in sending SI!

Seems problem starts with wapbox reporting "erroneous control
headers".

I start the bearerbox, wapbox & smsbox (all ok) and use this command:
./test_ppg -q
"http://localhost:3128/cgi-bin/wap-push.cgi?username=foo&password=bar";
content.xml control.xml

In the wapbox log I get:

2004-03-20 18:55:42 [13247] [11] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2004-03-20 18:55:42 [13247] [14] INFO: PPG: Accept request
</cgi-bin/wap-push.cgi> from <127.0.0.1>
2004-03-20 18:55:42 [13247] [14] WARNING: erroneous control headers
2004-03-20 18:55:42 [13247] [14] DEBUG: PPG:
send_bad_message_response: telling pi
2004-03-20 18:55:42 [13247] [14] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2004-03-20 18:55:42 [13247] [14] WARNING: PPG: unable to parse mime
content, the request unacceptable
2004-03-20 18:55:42 [13247] [10] DEBUG: HTTP: Destroying HTTPClient
area 0x81c96e8.
2004-03-20 18:55:42 [13247] [10] DEBUG: HTTP: Destroying HTTPClient
for `127.0.0.1'.


content.xml: <?xml version="1.0"?> <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/si.dtd";> <si> <indication href=http://www.myurl.com si-id="[EMAIL PROTECTED]" action="signal-medium" created="2003-12-25T15:23:15Z"> This is a test SI </indication> </si>

control.xml:
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"
          "http://www.wapforum.org/DTD/pap_1.0.dtd";>
<pap>
  <push-message push-id="[EMAIL PROTECTED]"
   deliver-before-timestamp="2012-12-28T06:45:00Z"
   deliver-after-timestamp="2001-02-28T06:45:00Z"
   progress-notes-requested="false">
   <address address-value="WAPPUSH=+44(no
removed)/[EMAIL PROTECTED]">
   </address>
   <quality-of-service>
    priority="low"
    delivery-method="unconfirmed"
    network-required="true"
    network="GSM"
    bearer-required="true"
    bearer="SMS"
  </quality-of-service>
 </push-message>
</pap>







Reply via email to