Hi! I am uploading file to web server. HTTP works fine, but HTTPS not. The HTTPS server has a trusted certificate, and i do not get any error on Android or Server, it simply stay "sending" file (cliente.execute(post)) until timeout expires, if i do no put timemout then it stays "sending" forever.
The code i use: StringBuffer url = new StringBuffer("https://....."); //add text to url... ... ... //Get File File foto = new File("path to file"); //Send file HttpClient client = new DefaultHttpClient(); HttpConnectionParams.setSoTimeout(client.getParams(), 10000); HttpConnectionParams.setConnectionTimeout(client.getParams(),10000); HttpPost post = new HttpPost(url.toString()); if (foto != null) { FileEntity fileEntity = new FileEntity(foto,"image/jpg"); post.setEntity(fileEntity); } client.execute(post); could anyone help??? thanks you very much -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en