I seem to have an issue when trying to connect to my webserver from
the emulator. My connection code is pretty basic:

urlConn = (HttpsURLConnection) url.openConnection();
                            if(urlConn != null)
                            {
                                urlConn.setRequestMethod("POST");
                                urlConn.setDoOutput(true);
                                urlConn.setRequestProperty("Connection",
"close");
                                urlConn.setRequestProperty("User-Agent", "ct");
                                urlConn.setRequestProperty("Content-Length",
String.valueOf(postBuffer.length()));

                                urlConn.connect();
.
.
.
This code will throw an IOException on the urlConn.connect() method.
In the detailMessage of the Exception I see the message "Hostname
<mywebserver> was not verified".  If I change the above code to use a
plain HttpURLConnection as opposed to Https, the code will run without
incident.  I do have the android.permission.INTERNET set in my
manifest.

I am guessing that because HTTP works, but HTTPS does not there is a
problem with the SSL cert we have on our server.  That's just a guess
however.  Has anyone encountered this type of problem or something
similar or have a suggestion on how to continue to diagnose this issue?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to