I have a strange problem with sending data (String) from midlet to servlet with HTTP POST. I cannot send more than about 1K of data because phone hung up on flush() method for some time then continue. At the same time servlet's doPost() doesn't obtain any data and throws exception after time out.
This problem doesn't appear when I use a S60 simulator and it doesn't appear when I send less than 1K of data from N6600.
a piece of code from the midlet:
conn = (HttpConnection) Connector.open(URL);
conn.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0"); conn.setRequestProperty("Content-Type", "text/html");
DataOutputStream os = conn.openDataOutputStream();
status = conn.getResponseCode();
httpResponse = conn.getResponseMessage();
Maybe there are some size limits of a message, or I should send data in a different form (bytes). Has anybody any suggestions ?