I really don't know what else to tell you. On the client side I use code like this:
Code:
StreamConnectionNotifier notify = (StreamConnectionNotifier)Connector.open("http://:912");
boolean loop = true;
while (loop)
{
StreamConnection stream = notify.acceptAndOpen();
InputStream input = stream.openInputStream();
StringBuffer sb = new StringBuffer();
int datum = -1;
while (-1 != (datum = input.read()) )
{
sb.append((char)datum);
}
stream.close();
String contactData = sb.toString();
// process contactData
}
I use C or Perl programs to manage the push from the server side, but here is a dump of a push HTTP transaction:
Code:
GET /push?DESTINATION=2xxxxxxx&PORT=912&REQUESTURI=/ HTTP/1.1
Host: uniteserver:8080
Content-Type: application/octet-stream
X-RIM-Push-Channel-ID: SomeChannel
X-RIM-Push-Use-Coverage: true
X-RIM-Push-NotifyURL: http://pushserver/cgi-bin/notify.cgi
Content-Length: 4
data
This works for me.