public String readHttpResponseHeaderLine() throws IOException {
		ByteArrayOutputStream buffer = new ByteArrayOutputStream();
		while (true) {
			int b = read();
			if (b < 0) {
				throw new IOException("Data truncated");
			}
			if (b == 10) {
				break;
			}
			if (b == 13) {
				continue;
			}
			buffer.write(b);
		}
		return new String(buffer.toByteArray(), "UTF-8");
	}