String host = uri.getHost();
int port = uri.getPort();
HostConfiguration hc = new HostConfiguration();
hc.setHost(host, port, protocol);
if (httpConn != null && hc.hostEquals(httpConn)) {
// Same details, no need to reset
} else {
httpConn = new HttpConnection(hc);
// TODO check these
httpConn.setProxyHost(System.getProperty("http.proxyHost"));