Re: Push using PI through 1.2.1 PPG - full log
"Norbert Naveen" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel,gmane.comp.mobile.kannel.user |
|---|---|
| Message-ID | <[email protected]> |
Am able to POST and Get Valid Response and Everythign is fine From: Norbert Naveen <[email protected]> To: <[email protected]>; <[email protected]> Sent: Saturday, April 24, 2004 2:40 PM Subject: Push using PI through 1.2.1 PPG - full log : On Kannel 1.2.1 with Bearbox and wapbox running : the testppg works fine with the following Conenet and Control files but when : i try the same with external CGI program to POST the same the follwing : Happens : : POST /cgi-bin/push.cgi HTTP/1.1 : Host:10.0.3.236 : Content-Type: multipart/related; boundary=asdfghjklpoiuyyyqwe; : type="application/xml" : --asdfghjklpoiuyyyqwe : Content-Type: application/xml : : <?xml version="1.0"?> : <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" : "http://www.wapforum.org/DTD/pap_1.0.dtd"> : <pap> : <push-message push-id="387" : progress-notes-requested="false"> : <address address-value="WAPPUSH=+35812345/[email protected]"/> : <quality-of-service delivery-method="unconfirmed" network-required="true" : network="GSM" bearer-required="true" bearer="SMS"/></push-message> : </pap> : : --asdfghjklpoiuyyyqwe : Content-type: text/vnd.wap.si : : <?xml version="1.0"?> : <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" : "http://www.wapforum.org/DTD/si.dtd"> : <si> : <indication si-id="1" href="http://10.0.3.236" : action="signal-high">Test Push</indication> : </si> : : --asdfghjklpoiuyyyqwe : : : I get the Follwoing response : : -- <?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" : "http://www.wapforum.org/DTD/pap_1.0.dtd"><pap><badmessage-response : code="2000" desc="Not understood due to malformed syntax" : bad-message-fragment="--asdfghjklpoiuyyyqwe : Content-Type: application/xml : : <?xml version="1.0"?> : <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" : "http://www.wapforum.org/DTD/pap_1.0.dtd"> : <pap> : <push-message push-id="387" : progress-notes-requested="false"> : <address address-value="WAPPUSH=+35812345/[email protected]"/> : <quality-of-service delivery-method="unconfirmed" network-required="true" : network="GSM" bearer-required="true" bearer="SMS"/></push-message> : </pap> : : --asdfghjklpoiuyyyqwe : Content-type: text/vnd.wap.si : : <?xml version="1.0"?> : <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" : "http://www.wapforum.org/DTD/si.dtd"> : <si> : <indication si-id="1" href="http://10.0.3.236" : action="signal-high">Test Push</indication> : </si> : : --asdfghjklpoiuyyyqwe" ></badmessage-response></pap> : : and the LOG : 2004-04-24 14:26:34 [11] DEBUG: HTTP: Creating HTTPClient for `10.0.3.236'. : 2004-04-24 14:26:34 [14] INFO: PPG: Accept request </cgi-bin/wap-push.cgi> : from <10.0.3.236> : 2004-04-24 14:26:34 [14] DEBUG: mime_content is : '--asdfghjklpoiuyyyqwe : Content-type: text/vnd.wap.si : : <?xml version="1.0"?> : <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" : "http://www.wapforum.org/DTD/si.dtd"> : <si> : <indication si-id="1" href="http://10.0.3.236" : action="signal-high">Test Push</indication> : </si> : : --asdfghjklpoiuyyyqwe : : : I get the Follwoing response : : -- <?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" : "http://www.wapforum.org/DTD/pap_1.0.dtd"><pap><badmessage-response : code="2000" desc="Not understood due to malformed syntax" : bad-message-fragment="--asdfghjklpoiuyyyqwe : Content-Type: application/xml : : <?xml version="1.0"?> : <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" : "http://www.wapforum.org/DTD/pap_1.0.dtd"> : <pap> : <push-message push-id="387" : progress-notes-requested="false"> : <address address-value="WAPPUSH=+35812345/[email protected]"/> : <quality-of-service delivery-method="unconfirmed" network-required="true" : network="GSM" bearer-required="true" bearer="SMS"/></push-message> : </pap> : : --asdfghjklpoiuyyyqwe : Content-type: text/vnd.wap.si : : <?xml version="1.0"?> : <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" : "http://www.wapforum.org/DTD/si.dtd"> : <si> : <indication si-id="1" href="http://10.0.3.236" : action="signal-high">Test Push</indication> : </si> : : --asdfghjklpoiuyyyqwe' : 2004-04-23 14:26:34 [14] WARNING: erroneous preamble : 2004-04-23 14:26:34 [14] DEBUG: PPG: send_bad_message_response: telling pi : 2004-04-23 14:26:34 [14] DEBUG: HTTP: Destroying HTTPClient area 0x80d2b58. : 2004-04-23 14:26:34 [14] DEBUG: HTTP: Destroying HTTPClient for : `10.0.3.236'. : 2004-04-23 14:26:34 [14] WARNING: PPG: unable to parse mime content, the : request unacceptable : : : : Has anyone written a PI to Post to the PPG and got a succesful reply . Or : where am I going wrong ??? : : Regards : Norbert : :