[android-developers] Re: HttpPost, ssl and error 'Not trusted server certificate'

2010-02-15 Thread badzio
On bugs.sun.com I've found workarround - read getErrorStream instead of getInputStream (when httpcode = 400). It works fine but when I try to convert this stream into string using solution from http://www.java2s.com/Code/Java/File-Input-Output/ConvertInputStreamtoString.htm than have

[android-developers] Re: HttpPost, ssl and error 'Not trusted server certificate'

2010-02-14 Thread badzio
Thanks for reply, that's nice to know that problem with IOException is a bug, not my fault :) Regarding certificate - mentioned links shows how to get certificate from my server. Unfortunetly server which I connect with, it's not my server. On 11 Lut, 17:00, joebowbeer joe.bowb...@gmail.com

[android-developers] Re: HttpPost, ssl and error 'Not trusted server certificate'

2010-02-11 Thread joebowbeer
3) Bob Lee explains how to get certificate from the server and add to keystore. http://crazybob.org/2010/02/android-trusting-ssl-certificates.html Concerning #2 (getResponseCode throws an exception), see workaround in this bug report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4523989