Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for headerSplitWithDate (0.1 sec)

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

      }
    
      @Test
      fun defaultUserAgent() {
        val request = fromArgs("http://example.com").createRequest()
        assertThat(request.header("User-Agent")!!).startsWith("okcurl/")
      }
    
      @Test
      fun headerSplitWithDate() {
        val request =
          fromArgs(
            "-H",
            "If-Modified-Since: Mon, 18 Aug 2014 15:16:06 GMT",
            "http://example.com",
          ).createRequest()
    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