/src/main/java/org/htmlunit/util/DebuggingWebConnection.java
length = IOUtils.copy ( input, fos ) ;
counter_++; final String extension = chooseExtension(response.getContentType()); final File file = createFile(request.getUrl(), extension); int length = 0; try (InputStream input = response.getContentAsStream()) { try (OutputStream fos = Files.newOutputStream(file.toPath())) { <extra_id_0> } catch (final EOFException e) { } } final URL url = response.getWebRequest().getUrl(); if (LOG.isInfoEnabled()) {