// Note: must set timeout,otherwise alway wait here.
// set time out
// conntction timeout 20s
httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 20000);
// transfer time 60s
httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 60000);