Hi, I have problem posting some data (approximately 150KB) on Nokia Asha 1.1 SDK Simulator as well as on a real Asha 503 device. The same code works flawlessly on previous Asha phones and simulators. The problem is that it takes really long time to complete (approximately 3 minutes) . While debugging I found that the problem line is where the connection gets the response code (http.getResponseCode()). I checked the server if the request is received but there is no data reaching the server before these 3 minutes. For some reason the code execution stops at http.getResponseCode() for 2-3 minutes and I can't figure out why is that. Please check my code below and tell me if you have any clues. Thanks in advance.
http = (HttpConnection)Connector.open(URL);
out = http.openOutputStream();
out.write(params.getBytes()); //params contain 139 783 bytes of data
if (http.getResponseCode() == HttpConnection.HTTP_OK) //here is the hang
//do something with the response