I'm using Blackberry to develop an application to send data over HTTP. I am posting the data from blackberry to a java servlet (web server).
It is working fine when I am working with JDE 4.2.0 and JDE 4.2.1 .
But not getting data in the java servlet when I send data using JDE 4.3.0 . No exeception printed. And also got the httpConnection.getResponseCode() as 200
I tried with the MDS that come with the JDE4.3 and the MDS in "BlackBerry Email and MDS Services Simulators 4.1.4"
Any help would be appreciated.
below is the code I am using to post data.
url is the path to servlet and
str is the data
byte data = str.getBytes();
int length = data.length;
httpConnection = (HttpConnection) Connector.open(url, Connector.WRITE);
httpConnection .setRequestProperty("Content-Language", "en-US");
httpConnection .setRequestProperty("Accept", "application/octet-stream");
output = httpConn.openDataOutputStream();
output.write(data, 0 ,length);