String host = System.getProperty("http.proxyHost");
String port = System.getProperty("http.proxyPort");
if( host != null && port != null ) {
httpClient.getHostConfiguration().setProxy(host, Integer.parseInt(port));
}
httpClient.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(1, false));
httpClient.getParams().setParameter(HttpMethodParams.SO_TIMEOUT, Integer.valueOf(TIMEOUT));
httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(TIMEOUT);
httpClient.getHttpConnectionManager().getParams().setSoTimeout(TIMEOUT);
// Download first 50 results (50 = max. result size for Yahoo API)