Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 65 for robot (0.15 sec)

  1. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

            .cache(Cache(FakeFileSystem(), "/cache".toPath(), 10_000_000))
            .build()
      }
    
      @Test
      fun testRequestExternal() {
        assumeNetwork()
    
        val request = Request("https://www.google.com/robots.txt".toHttpUrl())
    
        val networkRequest =
          request.newBuilder()
            .build()
    
        val call = client.newCall(networkRequest)
    
        call.execute().use { response ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. regression-test/README.md

    01-01 12:53:32.818 10999 11090 D OkHttp  : [56 ms] connectionReleased
    01-01 12:53:32.818 10999 11090 D OkHttp  : [56 ms] callEnd
    ```
    
    3. Run tests using gradle
    
    ```
    $ ANDROID_SDK_ROOT=/Users/myusername/Library/Android/sdk ./gradlew :regression-test:connectedCheck
    ...
    > Task :regression-test:connectedDebugAndroidTest
    ...
    11:55:40 V/InstrumentationResultParser: Time: 13.271
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Nov 13 07:09:56 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

        // The typical PKCS11 slot, may vary with different hardware.
        val slot = 0
    
        val config = "--name=OpenSC\nlibrary=/Library/OpenSC/lib/opensc-pkcs11.so\nslot=$slot\n"
    
        // May fail with ProviderException with root cause like
        // sun.security.pkcs11.wrapper.PKCS11Exception: CKR_SLOT_ID_INVALID
        val pkcs11 = Security.getProvider("SunPKCS11").configure(config)
        Security.addProvider(pkcs11)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (1)
  4. samples/guide/src/main/java/okhttp3/recipes/CustomTrust.java

    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    import okhttp3.tls.Certificates;
    import okhttp3.tls.HandshakeCertificates;
    
    public final class CustomTrust {
      // PEM files for root certificates of Comodo and Entrust. These two CAs are sufficient to view
      // https://publicobject.com (Comodo) and https://squareup.com (Entrust). But they aren't
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 9.3K bytes
    - Viewed (2)
  5. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     *     sha256/grX4Ta9HpZx6tSHkmCrvpApTQGo67CYDnvprLg5yRME=: CN=COMODO RSA Certification Authority
     *     sha256/lCppFqbkrlJ3EcVFAkeip0+44VaoJUymbnOaEUk7tEU=: CN=AddTrust External CA Root
     * Pinned certificates for publicobject.com:
     *     sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
     *   at okhttp3.CertificatePinner.check(CertificatePinner.java)
     *   at okhttp3.Connection.upgradeToTls(Connection.java)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  6. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

          assertThat(response.code).isEqualTo(200)
        }
      }
    
      @Test
      fun testRequestExternal() {
        assumeNetwork()
    
        val call = client.newCall(Request("https://google.com/robots.txt".toHttpUrl()))
    
        call.execute().use { response ->
          assertThat(response.code).isEqualTo(200)
        }
      }
    
      @Test
      fun testRequestInvalid() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt

        client =
          OkHttpClient.Builder()
            .sslSocketFactory(certificates.sslSocketFactory(), certificates.trustManager)
            .build()
      }
    
      fun run() {
        showUrl("https://squareup.com/robots.txt")
        showUrl("https://publicobject.com/helloworld.txt")
      }
    
      private fun showUrl(url: String) {
        val request = Builder().url(url).build()
        client.newCall(request)
          .execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.8K bytes
    - Viewed (5)
  8. okhttp/src/test/java/okhttp3/CertificateChainCleanerTest.kt

      }
    
      @Test
      fun normalizeSingleSelfSignedCertificate() {
        val root =
          HeldCertificate.Builder()
            .serialNumber(1L)
            .build()
        val cleaner = get(root.certificate)
        assertThat(cleaner.clean(list(root), "hostname")).isEqualTo(list(root))
      }
    
      @Test
      fun normalizeUnknownSelfSignedCertificate() {
        val root =
          HeldCertificate.Builder()
            .serialNumber(1L)
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt

              .build(),
          )
          .build()
    
      fun run() {
        val request =
          Request.Builder()
            .url("https://publicobject.com/robots.txt")
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java

            .sslSocketFactory(customSslSocketFactory, trustManager)
            .build();
      }
    
      /**
       * Returns the VM's default SSL socket factory, using {@code trustManager} for trusted root
       * certificates.
       */
      private SSLSocketFactory defaultSslSocketFactory(X509TrustManager trustManager)
          throws NoSuchAlgorithmException, KeyManagementException {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Mar 14 21:57:42 GMT 2019
    - 6.5K bytes
    - Viewed (0)
Back to top