Code example for HttpEntity

Methods: consumeContent

        // Execute HTTP Post Request 
		HttpResponse response = client.execute(post);
		HttpEntity entity = response.getEntity();
		if (validateLogin()){ 
			return true; 
		}else { 
			return false; 
	//Checks if the login was a successful one 
	private static boolean validateLogin() { 
		List<Cookie> cookies = Helper.client.getCookieStore().getCookies();
		//Checks the Client cookies and if there are none, the login wasn't successful 
		try { 
			int x = 0;