private String getURLContent(String url) throws IOException {
	StringBuilder str = new StringBuilder();
	HttpURLConnection conn = (HttpURLConnection) new URL(url)
		.openConnection();
	try (BufferedInputStream in = new BufferedInputStream(
		conn.getInputStream())) {
	    int c;
	    while ((c = in.read()) != -1) {
		str.append((char) c);
	    }
	}
	return str.toString();
    }