public void disconnect(){
  responseCode=-1;
  if (pi != null) {
    pi.finishTracking();
    pi=null;
  }
  if (http != null) {
    if (inputStream != null) {
      HttpClient hc=http;
      boolean ka=hc.isKeepingAlive();
      try {
        inputStream.close();
      }
 catch (      IOException ioe) {
      }
      if (ka) {
        hc.closeIdleConnection();
      }
    }
 else {
      http.setDoNotRetry(true);
      http.closeServer();
    }
    http=null;
    connected=false;
  }
  cachedInputStream=null;
  if (cachedHeaders != null) {
    cachedHeaders.reset();
  }
}

public void disconnect ( ) { responseCode = - 1 ; if ( pi != null ) { pi . finishTracking ( ) ; pi = null ; } if ( http != null ) { if ( inputStream != null ) { HttpClient hc = http ; boolean ka = hc . isKeepingAlive ( ) ; try { inputStream . close ( ) ; } catch ( IOException ioe ) { } if ( ka ) { hc . closeIdleConnection ( ) ; } } else { http . setDoNotRetry ( true ) ; http . closeServer ( ) ; } http = null ; connected = false ; } cachedInputStream = null ; if ( cachedHeaders != null ) { cachedHeaders . reset ( ) ; } }
disconnect from the server ( public api )
