public static String downloadToString(String url)  {
		URL website = null;
		try {
			website = new URL(url);
		} catch (MalformedURLException e) {
			System.out.println("Couldn't connect to "+url);
			return null;
		}
		URLConnection connection = null;
		try {
			connection = website.openConnection();
		} catch (IOException e) {
			System.out.println("Couldn't connect to " + url);
			return null;
		}
        connection.setRequestProperty("User-Agent", "FTBPermissionsChecker");
		BufferedReader in = null;
		try {
			in = new BufferedReader(
					new InputStreamReader(connection.getInputStream()));
		} catch (IOException e) {
			System.out.println("Couldn't read " + url);
			return null;
		}

		StringBuilder response = new StringBuilder();
		String inputLine;

		try {
			while ((inputLine = in.readLine()) != null)
				response.append(inputLine);
		} catch (IOException e) {
			System.out.println("Trouble reading " + url);
			return null;
		}

		try {
			in.close();
		} catch (IOException e) {
			System.out.println("Couldn't close connection to " + url);
		}

		return response.toString();
	}