private static String readResponse(InputStream in, String code)
	    throws Exception {
	StringBuilder stringBuilder = new StringBuilder();
	BufferedReader reader = new BufferedReader(new InputStreamReader(in,
		code));
	String line = null;
	while ((line = reader.readLine()) != null) {
	    stringBuilder.append(line + "\r\n");
	}
	return stringBuilder.toString();
    }