private HttpResponse process401(HttpURLConnection connection, InputStream inputStreamFromHost)
throws IOException {
HttpResponse response;
response = getResponse(inputStreamFromHost, connection);
String wwwAuthenticate = response.getLastSetValueOfHeader("WWW-Authenticate");
List<String> cookieHeaders = response.headers().getHeaders("Set-Cookie");
if (logger.isLoggable(Level.INFO)){
logger.info("wwwAuthenticate: " + wwwAuthenticate);
}
if (wwwAuthenticate != null){
String scheme = getScheme(wwwAuthenticate);