Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for user_agent (0.23 sec)

  1. src/main/java/org/codelibs/fess/helper/UserAgentHelper.java

                if (uaType == null) {
                    final String userAgent = request.getHeader(USER_AGENT);
                    if (userAgent != null) {
                        if (userAgent.indexOf("MSIE") >= 0 || userAgent.indexOf("Trident") >= 0) {
                            uaType = UserAgentType.IE;
                        } else if (userAgent.indexOf("Firefox") >= 0) {
                            uaType = UserAgentType.FIREFOX;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/header-params.md

    Also, HTTP headers are case-insensitive, so, you can declare them with standard Python style (also known as "snake_case").
    
    So, you can use `user_agent` as you normally would in Python code, instead of needing to capitalize the first letters as `User_Agent` or something similar.
    
    If for some reason you need to disable automatic conversion of underscores to hyphens, set the parameter `convert_underscores` of `Header` to `False`:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/it/admin/ReqHeaderTests.java

        void createWebConfig() {
            final Map<String, Object> requestBody = new HashMap<>();
            requestBody.put("name", "test_webconfig");
            requestBody.put("urls", "http://www.example.com");
            requestBody.put("user_agent", "Mozilla/5.0");
            requestBody.put("num_of_thread", 5);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", 100.0);
            requestBody.put("available", true);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/it/admin/WebAuthTests.java

        void createWebConfig() {
            final Map<String, Object> requestBody = new HashMap<>();
            requestBody.put("name", "test_webconfig");
            requestBody.put("urls", "http://www.example.com");
            requestBody.put("user_agent", "Mozilla/5.0");
            requestBody.put("num_of_thread", 5);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", 100.0);
            requestBody.put("available", true);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

                        fileConfig.setUpdatedTime(now);
                    }
                }
            } else if ("user_agent".equalsIgnoreCase(qName) && GLOBALPARAMS.equalsIgnoreCase(tagQueue.get(tagQueue.size() - 2))) {
                userAgent = textBuf.toString().trim();
            }
            tagQueue.pollLast();
            textBuf.setLength(0);
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

    import okhttp3.TestUtil.assumeNotWindows
    import okhttp3.TestUtil.awaitGarbageCollection
    import okhttp3.internal.DoubleInetAddressDns
    import okhttp3.internal.RecordingOkAuthenticator
    import okhttp3.internal.USER_AGENT
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.http.HTTP_EARLY_HINTS
    import okhttp3.internal.http.HTTP_PROCESSING
    import okhttp3.internal.http.RecordingProxySelector
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

            this.authSchemeProviderMap = authSchemeProviderMap;
        }
    
        /**
         * Sets the user agent string.
         * @param userAgent The user agent string.
         */
        public void setUserAgent(final String userAgent) {
            this.userAgent = userAgent;
        }
    
        /**
         * Sets the credentials provider.
         * @param credentialsProvider The credentials provider.
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                }
            }
    
            // user agent
            userAgent = getInitParameter(USER_AGENT_PROPERTY, userAgent, String.class);
            if (StringUtil.isNotBlank(userAgent)) {
                httpClientBuilder.setUserAgent(userAgent);
            }
    
            final HttpRoutePlanner planner = buildRoutePlanner();
            if (planner != null) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 52.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/opensearch/config/bsentity/dbmeta/PathMappingDbm.java

                false, false, "Long", 0, 0, null, null, false, null, null, null, null, null, false);
        protected final ColumnInfo _columnUserAgent = cci("userAgent", "userAgent", null, null, String.class, "userAgent", null, false, false,
                false, "keyword", 0, 0, null, null, false, null, null, null, null, null, false);
    
        public ColumnInfo columnCreatedBy() {
            return _columnCreatedBy;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

                return LaRequestUtil.getOptionalRequest().map(request -> {
                    final String userAgent = request.getHeader("user-agent");
                    if (StringUtil.isBlank(userAgent)) {
                        return false;
                    }
    
                    return pathMapping.getUAMatcher(userAgent).find();
                }).orElse(false);
            }
            return false;
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top