Hi Jeffrey, Thanks for confirming this. When you switched to the HttpClient equivalents, did you have to import all the additional external jars - I guess that's actually if you want to do a multi-part post, like here:
http://groups.google.com/group/android-developers/browse_thread/thread/e4230ed22c196772/222e1d3af8eca7b1?#222e1d3af8eca7b1 I'd prefer not to start importing all these additional jars, ugh. Just wondering if that's what you ended up doing, Thanks On Dec 19, 10:03 pm, Jeffrey Blattman <jeffrey.blatt...@gmail.com> wrote: > 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" <mar...@gmail.com> 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs > cr...@googlegroups.com> > For more options, visit this group > athttp://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 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