Hi eradis,
actually, we haven't figured out it at all... we are getting more pessimistinc about BB is giving real support for HTTP.
We did a test with the following code:
...
(HttpConnection)Connector.open("http://server:8080/sync4j/sync;WAPGatewayIP=x.x.x.x;WAPGatewayAPN=something; WAPGatewayPort=9201", Connector.READ_WRITE, true);
c.setRequestMethod(HttpConnection.POST);
c.setRequestProperty("User-Agent" , "BlackBerry/3.6.1" );
c.setRequestProperty (PROP_CONTENT_TYPE , "application/vnd.syncml+xml" );
c.setRequestProperty (PROP_CONTENT_LENGTH , String.valueOf(length) );
os = c.openOutputStream();
for (int i = 0; i < l; i++) {
os.write(requestArray[i]);
}
os.flush();
os.close();
os = null;
...
and we looked at the GW log. It receives the formencode mimetype, regardless what we specify in the connection object.
This prevents the BB to make, for example, SyncML calls, which is badly enough.
Any suggestion?