public static void main(String[] args) throws Exception {
// Create an HttpClient with the ThreadSafeClientConnManager.
// This connection manager must be used if more than one thread will
// be using the HttpClient.
IntermediateHttpClient interClient = new IntermediateHttpClient();
((ThreadSafeClientConnManager)interClient.getConnectionManager()).setMaxTotal(100);
CacheConfig config = new CacheConfig();
config.setMaxObjectSizeBytes(2<<24);
CachingHttpClient httpclient = new CachingHttpClient(new IntermediateHttpClient(), new Cache((long)2<<34, "places"), config);
try {
// create an array of URIs to perform GETs on
String[] urisToGet = {
"http://www.gutenberg.org/files/76/76-h/76-h/76-h.htm",