I am trying to call URL from java but am getting error as java.net.UnknownHostException:
Java Code:
URL url = new URL("http://www.gettingagile.com/feed/rss2/");
HttpURLConnection request = (HttpURLConnection) url.openConnection();
String code = String.valueOf(request.getResponseCode());
System.out.println("Error code "+code);