// Normally HttpClient takes care or opening collection
// but since we use our own HttpClient we need to do
// it manually
if (!connection.isOpen()) {
connection.open();
}
statusCode = method.execute(httpState, connection);
} catch (Exception e) {
if (task != null && task.timedOut()) {