Re: [android-developers] https connection problem
Hi all, last time from me for now ;-) I've uploaded a tiny test project here http://impara.de/michael/TestSSL.zip that demonstrates every other request failing to work. For now I will hack some ugly workaround simply repeating the request if the first one fails. It must be something really stupid I'm doing wrong as I can't really imagine that nobody else is using https connections. Michael -- 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
Re: [android-developers] https connection problem
connection.connect(); OutputStream os = connection.getOutputStream(); os.write(requestData, 0, requestData.length); os.flush(); os.close(); InputStream is; connection.connect(); seems like u have two connection attempts why do u need two connects, and there is one disconnect at the end of test connection. I am not sure what happens with two connect requests. I am not so familiar with httpconnection yet but looking at code this is what I found. May be its not relevant. Sen On Fri, Feb 12, 2010 at 10:12 AM, Michael Rueger mike.rue...@gmail.comwrote: Hi all, last time from me for now ;-) I've uploaded a tiny test project here http://impara.de/michael/TestSSL.zip that demonstrates every other request failing to work. For now I will hack some ugly workaround simply repeating the request if the first one fails. It must be something really stupid I'm doing wrong as I can't really imagine that nobody else is using https connections. Michael -- 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.comandroid-developers%2bunsubscr...@googlegroups.com 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 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
Re: [android-developers] https connection problem
On 2/12/2010 5:27 PM, social hub wrote: connection.connect(); OutputStream os = connection.getOutputStream(); os.write(requestData, 0, requestData.length); os.flush(); os.close(); InputStream is; connection.connect(); seems like u have two connection attempts why do u need two connects, and there is one disconnect at the end of test connection. I am not sure what happens with two connect requests. I am not so familiar with httpconnection yet but looking at code this is what I found. May be its not relevant. unfortunately that doesn't make a difference, although it could have well been the stupid thing I was hoping for. Thanks! Michael -- 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
Re: [android-developers] https connection problem
Once I replaced the url with https://mail.google.com it is fine i got each attempt succesful With ur url connection is successful all time except read happened every other time probably something do with ssl server On Fri, Feb 12, 2010 at 10:38 AM, Michael Rueger mike.rue...@gmail.comwrote: On 2/12/2010 5:27 PM, social hub wrote: connection.connect(); OutputStream os = connection.getOutputStream(); os.write(requestData, 0, requestData.length); os.flush(); os.close(); InputStream is; connection.connect(); seems like u have two connection attempts why do u need two connects, and there is one disconnect at the end of test connection. I am not sure what happens with two connect requests. I am not so familiar with httpconnection yet but looking at code this is what I found. May be its not relevant. unfortunately that doesn't make a difference, although it could have well been the stupid thing I was hoping for. Thanks! Michael -- 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.comandroid-developers%2bunsubscr...@googlegroups.com 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 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
Re: [android-developers] https connection problem
On 2/12/2010 6:05 PM, social hub wrote: Once I replaced the url with https://mail.google.com it is fine i got each attempt succesful same for me here With ur url connection is successful all time except read happened every other time probably something do with ssl server hmm, interesting and scary thought... But coincides with the (rejected) traffic I saw in WireShark. Thanks Michael -- 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
Re: [android-developers] https connection problem
What did u see in wireshark. is this your test server. do you have any specific details about the server side On Fri, Feb 12, 2010 at 11:24 AM, Michael Rueger mike.rue...@gmail.comwrote: On 2/12/2010 6:05 PM, social hub wrote: Once I replaced the url with https://mail.google.com it is fine i got each attempt succesful same for me here With ur url connection is successful all time except read happened every other time probably something do with ssl server hmm, interesting and scary thought... But coincides with the (rejected) traffic I saw in WireShark. Thanks Michael -- 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.comandroid-developers%2bunsubscr...@googlegroups.com 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 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
Re: [android-developers] https connection problem
On 2/12/2010 6:27 PM, social hub wrote: What did u see in wireshark. is this your test server. do you have any specific details about the server side ok, the idea with the server side pointed me in the right direction. Sort of... I found notes about connection problems with older IE versions: http://httpd.apache.org/docs/2.2/ssl/ssl_faq.html#msie So adding these settings to my test server seems to solve the problem. It still looks like a bug in the Android SSL stack to me. Thanks again for helping out! Michael -- 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