Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setRequestMethod (0.07 sec)

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

                try {
                    logger.fine(() -> ">>> " + method + " " + url);
                    final URL u = new URL(url);
                    connection = open(u);
                    connection.setRequestMethod(method.toString());
                    if (headerList != null) {
                        for (final String[] values : headerList) {
                            logger.fine(() -> ">>> " + values[0] + "=" + values[1]);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        // 3.5 MBytes so this test can pass on devices with little memory.
        server.bodyLimit = 7 * 512 * 1024
        val connection = server.url("/").toUrl().openConnection() as HttpURLConnection
        connection.setRequestMethod("POST")
        connection.setDoOutput(true)
        connection.setFixedLengthStreamingMode(1024 * 1024 * 1024) // 1 GB
        connection.connect()
        val out = connection.outputStream
        val data = ByteArray(1024 * 1024)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
Back to top