Code example for AndroidHttpClient

Methods: enableCurlLogging, getParams

0
		this.httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore);
		this.httpClient = AndroidHttpClient
				.newInstance("Apache-HttpClient/4.1.1 (java 1.5)");
		this.credenziali = credenziali;
		this.isLoggedIn = false;
		this.httpClient.enableCurlLogging(this.getClass().getSimpleName(),
				Log.INFO);
		HttpClientParams.setRedirecting(this.httpClient.getParams(), true);
		this.httpClient.getParams().setBooleanParameter(
				ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);
	} 
 
	public PortaleStudentiClient() { 
		this(null); 
	} 
 
	/* 
	 * this method should be private but made package visible to test it within 
	 * a junit test case 
	 */ 
	void step1() throws FailedLoginStepException {