Hello everyone,
I m writing one application in which i m posting data on server side using HTTP Connection.Some How my server taking much time to generate response,so after 45 sec my c2 phone automatically sends same request to server if connection is unable to get response within 45 time.I have checked log on server side and i found that my app is sending two request insted of one after 45 sec.i have also checked on emulator and havent facing this type of issue in emulator.

here i have atteched my code.

HttpConnection connection = null;

String url="some URL";
String param="function=OpenRecharge&LoginId=s10dq9zq&BatchId=5&SystemServiceID=4&ReferalNumber=88888888888&Amount=250000&FromANI=0782283987&Email=&Checksum=283c9abc5d12a1de939551e88514cccc";
connection= (HttpConnection) Connector.open(url,Connector.READ_WRITE,true);//,Connector.READ_WRITE,true);
connection.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

OutputStream out = connection.openOutputStream();



Alert error=new Alert("ResponseCode:",""+connection.getResponseCode(),null,AlertType.INFO);

can anyone tell me why my app sending two request from only phone.??or can anyone suggest me how to increse htttpconnection timout..??