Hi, I'm trying to get my tomcat instance to connect over https to an external server. I have written a test servlet to do this
String httpsURL = "*https*://*example*.microsoft.com"; URL myurl = new URL(httpsURL); HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection(); InputStream ins = con.getInputStream(); InputStreamReader isr=new InputStreamReader(ins); BufferedReader in =new BufferedReader(isr); String inputLine; while ((inputLine = in.readLine()) != null) out.println(inputLine); in.close(); But always get the following exception java.net.UnknownHostException: example.microsoft.com java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) java.net.Socket.connect(Socket.java:519) java.net.Socket.connect(Socket.java:469).... Any ideas? Cheers Dan