Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
Developer
filiussoft
Posts: 106
Registered: ‎06-18-2009
My Device: Bold

BES - X-RIM-Push-NotifyURL - Does it make a POST or GET callback?

I'm working on an application that uses BES push.

 

Looking over this knowledge base articles (http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/The-Push-notification-format/ta-p...), it says that "the notification is sent via an HTTP post" when the X-RIM-Push-NotifyURL. 

 

I tested it but it seems to be making the callbacks using GET and not POST. Maybe a documentation error?

Is it save to assume that the callback will always come in as a GET request?

 

Thanks,

Thorben

----
If this helped you, press the thumbs up button (on the far right - '+' thumb icon)
If this post solved the issue, click "Accept as Solution"
Developer
bb_cladsa
Posts: 58
Registered: ‎01-14-2010
My Device: 9000

Re: BES - X-RIM-Push-NotifyURL - Does it make a POST or GET callback?

Using the HTTPPushDemo sample that is included with the JDE, it is a POST message:

 

Here is the output from the demo:

 

 

Received notification:smileytongue:OST / HTTP/1.1
User-Agent: RIM MDS/4.0
Accept: */*
Host: localhost:7778
Content-Length: 637
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN" "http://www.wapforum.org/DTD/pap_2.0.dtd" [<?wap-pap-ver supported-versions="2.0"?>]>
<pap product-name="Research In Motion Ltd. Mobile Data Service"><resultnotification-message code="1000" received-time="2010-07-27T17:50:17Z" message-state="delivered" event-time="2010-07-27T17:50:17Z" sender-name="MDS" sender-address="http://localhost:6080/pap" push-id="pushID:121021436"><address address-value="WAPPUSH=2145645A%3A100/TYPE=USER@rim.net"/><quality-of-service delivery-method="confirmed"/></resultnotification-message></pap>

Received notification:smileytongue:OST / HTTP/1.1User-Agent: RIM MDS/4.0Accept: */*Host: localhost:7778Content-Length: 637
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN" "http://www.wapforum.org/DTD/pap_2.0.dtd" [<?wap-pap-ver supported-versions="2.0"?>]><pap product-name="Research In Motion Ltd. Mobile Data Service"><resultnotification-message code="1000" received-time="2010-07-27T17:50:17Z" message-state="delivered" event-time="2010-07-27T17:50:17Z" sender-name="MDS" sender-address="http://localhost:6080/pap" push-id="pushID:121021436"><address address-value="WAPPUSH=2145645A%3A100/TYPE=USER@rim.net"/><quality-of-service delivery-method="confirmed"/></resultnotification-message></pap>