Yes. I came to the conclusion that the sdk was re-using the ssl connection internally but at some point the connection was released, but the sdk kept trying to use it.
I never found a solution and ended up using the httpclient equivalents. Sorry I don't know enough about http or ssl to give a better answer. On Dec 19, 2009 6:16 PM, "Mark Wyszomierski" <[email protected]> wrote: Hi, Has anyone else experienced an odd behavior with HttpUrlConnection, using https, a POST request, and image data? I'm in a situation where the first time I POST my data, everything goes through to the web server fine. Next time I post, this call: HttpURLConnection conn = (HttpURLConnection) new URL (strUrl).openConnection(); returns immediately, with 'conn' initialized and usable, however no output is actually written - and the response from the web server is empty. The result code is -1. The next time I run the post, everything works fine again. Repeats in that cycle forever: 1) post works fine 2) no good, doesn't actually open connection, and just returns an empty string. 3) post works fine 4) no good, doesn't actually open connection, and just returns an empty string. .. etc .. this is all from within the same thread, same app - I just made a dummy activity that has a single button and posts the data to the web server when clicked. This is posting to a large 3rd party site. I tried self-signing my own cert, and pointed to my own test php script on my own server. Same behavior. Every other post fails like this, no error message / exception, nothing. I also ran a proxy (Charles proxy) with the emulator. I can see that on the failed attempts, no connection is made at all. So it seems like something is going on inside the android system - a network connection isn't even attempted. This is a really bizarre problem. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]<android-developers%[email protected]> For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

