thrownewIOException(e.getMessage());// can be caused at java.net.URI.create()
}
httpGet.addHeader(newBasicHeader("Connection","close"));// don't keep alive, prevent CLOSE_WAIT state
if(!localhost)setHost(url.getHost());// overwrite resolved IP, needed for shared web hosting DO NOT REMOVE, see http://en.wikipedia.org/wiki/Shared_web_hosting_service
thrownewIOException(e.getMessage());// can be caused at java.net.URI.create()
}
httpGet.addHeader(newBasicHeader("Connection","close"));// don't keep alive, prevent CLOSE_WAIT state
setHost(url.getHost());// overwrite resolved IP, needed for shared web hosting DO NOT REMOVE, see http://en.wikipedia.org/wiki/Shared_web_hosting_service