Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for contentTypeHeader (0.22 sec)

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

        assertThat(body!!.contentType().toString()).isEqualTo(
          "application/x-www-form-urlencoded; charset=utf-8",
        )
        assertThat(bodyAsString(body)).isEqualTo("foo")
      }
    
      @Test
      fun contentTypeHeader() {
        val request =
          fromArgs(
            "-d",
            "foo",
            "-H",
            "Content-Type: application/json",
            "http://example.com",
          ).createRequest()
        val body = request.body
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                    logger.warn("Invalid redirect location at {}", url);
                }
    
                String contentType = null;
                final Header contentTypeHeader = response.getFirstHeader("Content-Type");
                if (contentTypeHeader != null) {
                    contentType = contentTypeHeader.getValue();
                    final int idx = contentType.indexOf(';');
                    if (idx > 0) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:29:26 UTC 2024
    - 41K bytes
    - Viewed (0)
Back to top