HttpURLConnection.getInputStream very slow
问题 HttpURLConnection.getInputStream takes very much time when compared to iPhone App which uses the same server side services. The following code is used for the service : date= new java.util.Date(); Log.d("time","Time Stamp before posting "+new Timestamp(date.getTime())); URL ur= new URL(url); HttpURLConnection conn = (HttpURLConnection) ur.openConnection(); conn.setRequestProperty("Connection", "close"); conn.setReadTimeout(10000); conn.setConnectTimeout(15000); conn.setRequestMethod("POST");