Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkRemoteDNSResolve (0.13 sec)

  1. okhttp/src/test/java/okhttp3/SocksProxyTest.kt

        val response = client.newCall(request).execute()
        assertThat(response.body.string()).isEqualTo("abc")
        assertThat(socksProxy.connectionCount()).isEqualTo(1)
      }
    
      @Test
      fun checkRemoteDNSResolve() {
        // This testcase will fail if the target is resolved locally instead of through the proxy.
        server.enqueue(MockResponse.Builder().body("abc").build())
        val client =
          clientTestRule.newClientBuilder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top