In my android app I'm trying to make a POST to a particular URL. The app makes several POSTS to other URLS without any issues and works fine in the simulator. This one URL always throws
java.net.UnknownHostException: Unable to resolve host "xxxx-xxxx": No address associated with hostname
If I open a browser both on my mac and on the simulator I CAN navigate to the URL!
Anything I try in java code throws an exception
For example
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
throws
java.net.UnknownHostException: Unable to resolve host "xxxx-xxxx": No address associated with hostname
The URL looks something like this...
http://xxxx-xxxx-zzzz:8080/risk-restapi/catest/Advanced/eval
Any ideas why java does not like this URL. The URL works fine in Xcode and an Objective C iOS app!
thanks in advance...!