Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getTokenValue (0.06 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/form/FormSchemeTest.java

            assertEquals("abcdefg", formScheme.getTokenValue(tokenPattern, content));
    
            tokenPattern = "name=\"authenticity_token\" +value=\"[^\"]+\"";
            content = "<input name=\"authenticity_token\" value=\"abcdefg\">";
            assertNull(formScheme.getTokenValue(tokenPattern, content));
    
            tokenPattern = "name=\"authenticity_token\" +value=\"([^\"]+)\"";
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/FormScheme.java

                final String tokenName = getParameter(TOKEN_NAME);
                final String content = new String(InputStreamUtil.getBytes(entity.getContent()), Constants.UTF_8_CHARSET);
                final String tokenValue = getTokenValue(tokenPattern, content);
                if (StringUtil.isNotBlank(tokenValue)) {
                    responseParams.add(new Pair<>(tokenName, tokenValue));
                    if (logger.isDebugEnabled()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top