In a free-standing Java1.5 program I'm able to open an HttpsURLConnection without doing anything particular. In Android it seems that you must write a HostnameVerifier because the default verifier doesn't work properly.
# dalvikvm -cp app/com.example.android.lunarlander.apk org.webpki.net.HttpsWrapp er -get https://www.verisign.com -headers dalvikvm -cp app/com.example.android.lunarlander.apk org.webpki.net.HttpsWrapper -get https://www.verisign.com -headers java.io.IOException: Hostname <www.verisign.com> was not verified at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection .getSecureSocket(HttpConnection.java:169) at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConne ction$HttpsEngine.connect(HttpsURLConnection.java:398) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnect ion.getInputStream(HttpURLConnection.java:1030) at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConne ction.getInputStream(HttpsURLConnection.java:252) at org.webpki.net.HttpsWrapper.getServerResponse(HttpsWrapper.java:415) at org.webpki.net.HttpsWrapper.makeGetRequest(HttpsWrapper.java:402) at org.webpki.net.HttpsWrapper $CommandLine.execute(HttpsWrapper.java:138Regards Anders Rundgren http://WebPKI.org --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---