Code example for SingleClientConnManager

		params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 30);
		params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, new ConnPerRouteBean(30));
		params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false);
		HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
		ClientConnectionManager cm = new SingleClientConnManager(params, schemeRegistry);
		HttpClient httpClient = new DefaultHttpClient(cm, params);
		return httpClient;
	 * Make an http request using the GET protocol 
	 * @param url 
	 * @return 
	 * @throws Exception 
	public static String getUrl(String url) throws Exception {
		HttpClient httpClient = getHttpClient();
		HttpGet httpRequest = new HttpGet(url);
		return execHttpRequest(httpClient, httpRequest);
Experience pair programming with AI  Get Codota for Java