Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for HTTP_UNAUTHORIZED (0.06 sec)

  1. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            }
        }
    
        private void doHandshake() throws IOException {
            connect();
            try {
                int response = parseResponseCode();
                if (response != HTTP_UNAUTHORIZED && response != HTTP_PROXY_AUTH) {
                    return;
                }
                final Type1Message type1 = (Type1Message) attemptNegotiation(response);
                if (type1 == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            // Arrange
            mockResponse(HTTP_UNAUTHORIZED, "Unauthorized",
                    Collections.singletonMap("WWW-Authenticate", Collections.singletonList("Basic realm=\"Test\"")),
                    new ByteArrayInputStream(new byte[0]));
    
            // Act
            int responseCode = ntlmConnection.getResponseCode();
    
            // Assert
            assertEquals(HTTP_UNAUTHORIZED, responseCode);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/NtlmHttpURLConnection.java

            }
        }
    
        private void doHandshake() throws IOException, GeneralSecurityException {
            connect();
            try {
                int response = parseResponseCode();
                if (response != HTTP_UNAUTHORIZED && response != HTTP_PROXY_AUTH) {
                    return;
                }
                final NtlmMessage type1 = attemptNegotiation(response);
                if (type1 == null) {
                    return; // no NTLM
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        when (responseCode) {
          HttpURLConnection.HTTP_PROXY_AUTH -> {
            builder.addHeader("Proxy-Authenticate: Basic realm=\"protected area\"")
          }
    
          HttpURLConnection.HTTP_UNAUTHORIZED -> {
            builder.addHeader("WWW-Authenticate: Basic realm=\"protected area\"")
          }
    
          HttpURLConnection.HTTP_NO_CONTENT, HttpURLConnection.HTTP_RESET -> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
Back to top