Post a part of your sourcecode! Than we can compare it and maybe find something diverent... what kind of software version of Nokia do you use (presse "*#0000#" on your phone)?
This is my code example:
Code:
public synchronized String send(String data) {
try {
if(serverURL != null) {
connection = (HttpConnection) Connector.open(serverURL);
connection.setRequestMethod(HttpConnection.POST);
OutputStream output = connection.openOutputStream();
output.write(data.getBytes());
output.write(-1);
output.flush();
output.close();
InputStream input = connection.openInputStream();
int contentLength = (int)connection.getLength();
if(contentLength < 1) contentLength = 4096;
byte[] raw = new byte[contentLength];
int length = input.read(raw);
// CLOSE the connection
input.close();
connection.close();
input = null;
output = null;
connection = null;
String response = null;
response = new String(raw,0 , length);
}