hi
i am using org.apache.commons.httpclient with GetMethod
when i am giving same url in for loop
after some iterations the system is hanging at
method.getResponseBodyAsSting() or at method.getResponseBodyAsString();
the code is like this
for(int i=0; i<200 ; i++) {
HttpClient client = new HttpClient();
GetMethod method = new GetMethod(someurl);
int statuscode = client.executeMethod(method);
String str = method.getResponseBodyAsString(); // the system is
// hanging here
System.out.println(statuscode);
System.out.println(str);
method.releaseConnection();
}
can any body please give the reason