Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ToString (0.16 sec)

  1. src/main/java/org/codelibs/curl/CurlResponse.java

                while (length != -1) {
                    if (length != 0) {
                        baos.write(bytes, 0, length);
                    }
                    length = bis.read(bytes);
                }
                return baos.toString(encoding);
            } catch (final Exception e) {
                throw new CurlException("Failed to access the content.", e);
            }
        }
    
        public InputStream getContentAsStream() throws IOException {
    Java
    - Registered: Thu May 09 15:34:10 GMT 2024
    - Last Modified: Mon Nov 14 21:05:19 GMT 2022
    - 4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/curl/CurlRequest.java

                    }
                    url = url + urlBuf.toString();
                }
    
                HttpURLConnection connection = null;
                try {
                    logger.fine(() -> ">>> " + method + " " + url);
                    final URL u = new URL(url);
                    connection = open(u);
                    connection.setRequestMethod(method.toString());
                    if (headerList != null) {
    Java
    - Registered: Thu May 09 15:34:10 GMT 2024
    - Last Modified: Sun Feb 12 12:21:25 GMT 2023
    - 12.3K bytes
    - Viewed (0)
Back to top