private org.apache.commons.httpclient.HttpClient getHttpClient(){
    	org.apache.commons.httpclient.HttpClient client = new org.apache.commons.httpclient.HttpClient();
		 if (proxyHost != null && !proxyHost.equals("")) {
			 client.getHostConfiguration().setProxy(proxyHost, proxyPort);  
			 client.getParams().setAuthenticationPreemptive(true); 
	            if (proxyAuthUser != null && !proxyAuthUser.equals("")) {
	            	client.getState().setProxyCredentials(AuthScope.ANY, new UsernamePasswordCredentials(proxyAuthUser,proxyAuthPassword));  
	                log("Proxy AuthUser: " + proxyAuthUser);
	                log("Proxy AuthPassword: " + proxyAuthPassword);
	            }
		 }
		 return client;
    }