Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for dataPost (0.04 sec)

  1. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        assertThat(request.method).isEqualTo("PUT")
        assertThat(request.url.toString()).isEqualTo("http://example.com/")
        assertThat(request.body!!.contentLength()).isEqualTo(3)
      }
    
      @Test
      fun dataPost() {
        val request = fromArgs("-d", "foo", "http://example.com").createRequest()
        val body = request.body
        assertThat(request.method).isEqualTo("POST")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top