Hi,
I am using HttpClient API.I have pasted part of some code below.
I am getting this SocketException:socket closed on "client.executeMethod(getMethod)".How can I handle this exception ? Could you please help me ?
HttpClient client = new HttpClient();
GetMethod getMethod = new GetMethod(url);
getMethod.setFollowRedirects(true);
startTime = System.currentTimeMillis();
byte[] responseBody = null;
String response = null;
try {
int statusCode = client.executeMethod(getMethod);
}
catch(Exception e) {
}
I would be really greatful for it.Thanks....
Regards
Nimish PATEL