connection.open();
}
statusCode = method.execute(httpState, connection);
} catch (Exception e) {
if (task != null && task.timedOut()) {
// Assume that the exception occurred because of the
// timeout.
// todo create a more specific exception that encapsulates the
// todo URL, the timeout and the actual elapsed time.