private void disconnectWeb() throws IOException {
  if (usingProxy() && http.isKeepingAlive()) {
    responseCode=-1;
    reset();
  }
 else {
    disconnectInternal();
  }
}

private void disconnectWeb ( ) throws IOException { if ( usingProxy ( ) && http . isKeepingAlive ( ) ) { responseCode = - 1 ; reset ( ) ; } else { disconnectInternal ( ) ; } }
disconnect from the web server at the first 401 error . do not disconnect when using a proxy , a good proxy should have already closed the connection to the web server .
