private boolean execute(boolean readResponse) throws IOException {
  try {
    httpEngine.sendRequest();
    if (readResponse) {
      httpEngine.readResponse();
    }
    return true;
  }
 catch (  IOException e) {
    if (handleFailure(e)) {
      return false;
    }
 else {
      throw e;
    }
  }
}

private boolean execute ( boolean readResponse ) throws IOException { try { httpEngine . sendRequest ( ) ; if ( readResponse ) { httpEngine . readResponse ( ) ; } return true ; } catch ( IOException e ) { if ( handleFailure ( e ) ) { return false ; } else { throw e ; } } }
sends a request and optionally reads a response . returns true if the request was successfully executed , and false if the request can be retried . throws an exception if the request failed permanently .
