Code example for HttpParams

Methods: setParameter

0
		// HTTPS scheme 
		schemeRegistry.register(new Scheme("https", new EasySSLSocketFactory(),
				443)); 
 
		params = new BasicHttpParams();
		params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 1);
		params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE,
				new ConnPerRouteBean(1));
		params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false);
		HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
		HttpProtocolParams.setContentCharset(params, "utf8");
		clientConnectionManager = new ThreadSafeClientConnManager(params,
				schemeRegistry);
	} 
	 
	/* 
	 * Thanks to Fabrizio Chami at JavaCodeGeeks.com 
	 * http://www.javacodegeeks.com 
	 * /2011/01/android-json-parsing-gson-tutorial.html The following method 
	 * simply takes a URL, sends a GET request to the server and returns an  
	 * input stream, which can be read and parsed.