public byte[] getResponse(InputStream in)
	{
		BufferedReader read = new BufferedReader(new InputStreamReader(in));
		while(loop)
		{
			try {
				if (bheader)
					this.getHeader(read.readLine() + "\n");
				else if (contentLength != 0)
					this.getBody(read);
				else if (response && contentLength == 0)
					this.getChunkedBody(read);
			} catch (IOException e) {
				e.getStackTrace();
				loop = false;
			}
		}
		if (header == null)
			return null;
		return this.setToBytes();
	}