private void readLimitedInto(HttpURLConnection conn, int limit, ByteArrayOutputStream read) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(getConnectionInputStream(conn)));
		String line = null;
		while ((line = in.readLine()) != null) {
			read.write(line.getBytes());
			if (read.size() > limit) {
				return;
			}
		}
	}