Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 432 for Curl (0.13 seconds)

  1. src/main/java/org/codelibs/curl/CurlException.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.curl;
    
    /**
     * Custom exception class for handling errors related to Curl operations.
     * This class extends {@link RuntimeException} and provides constructors
     * to create an exception instance with a message and an optional cause.
     *
     * <p>Usage examples:</p>
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Jul 05 01:38:18 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. .teamcity/scripts/update_wrapper_and_create_pr.sh

    #                     If it's "Release - Release Candidate", version will be from version-info-release-candidate/version-info.properties
    
    post() {
        local endpoint="$1"
        local data="$2"
    
        local response=$(curl -X POST \
            -H "Authorization: token $GITHUB_TOKEN" \
            -H "Accept: application/vnd.github.v3+json" \
            -H "Content-Type: application/json" \
            "https://api.github.com/repos/gradle/gradle$endpoint" \
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jul 29 03:20:20 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/curl/CurlResponse.java

     */
    package org.codelibs.curl;
    
    import java.io.Closeable;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.function.Function;
    
    import org.codelibs.curl.io.ContentCache;
    
    /**
     * The CurlResponse class represents the response from a cURL request.
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/PluginHelper.java

         * @return a configured CURL request
         */
        protected CurlRequest createCurlRequest(final String url) {
            final CurlRequest request = Curl.get(url);
            final Proxy proxy = ComponentUtil.getFessConfig().getHttpProxy();
            if (proxy != null && !Proxy.NO_PROXY.equals(proxy)) {
                request.proxy(proxy);
            }
            return request;
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Mar 04 15:19:41 GMT 2026
    - 25.1K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/storage/ApiAdminStorageAction.java

                logger.warn("Failed to delete {}", id, e);
                throwValidationErrorApi(messages -> messages.addErrorsFailedToDeleteFile(GLOBAL, pi.getName()));
            }
            return null;
        }
    
        // curl -XPOST -H "Authorization: CHANGEME" localhost:8080/api/admin/storage/upload/ -F path=/ -F file=@...
        // PUT /api/admin/storage/upload/{pathId}/
        /**
         * Uploads a file to storage.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  6. README.md

        $ curl -s "http://localhost:8080/api/v1/health"
    
    You should see a JSON response when Fess is ready.
    
    #### 3. Clone Test Data
    
    Required for SearchApiTests:
    
        $ git clone https://github.com/codelibs/fess-testdata.git /tmp/fess-testdata
    
    #### 4. Run Integration Tests
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Feb 14 03:19:23 GMT 2026
    - 7.8K bytes
    - Click Count (2)
  7. src/test/java/org/codelibs/fess/helper/UserAgentHelperTest.java

            assertEquals(UserAgentType.OTHER, userAgentHelper.getUserAgentType());
        }
    
        @Test
        public void test_getUserAgentType_curl() {
            getMockRequest().addHeader("user-agent", "curl/7.68.0");
            assertEquals(UserAgentType.OTHER, userAgentHelper.getUserAgentType());
        }
    
        @Test
        public void test_getUserAgentType_wget() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/util/ComponentUtil.java

         */
        public static QueryStringBuilder getQueryStringBuilder() {
            return getComponent(QUERY_STRING_BUILDER);
        }
    
        /**
         * Gets the curl helper component.
         * @return The curl helper.
         */
        public static CurlHelper getCurlHelper() {
            return getComponent(CURL_HELPER);
        }
    
        /**
         * Gets the coordinator helper component.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/NotificationHelper.java

                try (CurlResponse response = Curl.post(url).header("Content-Type", "application/json").body(body).execute()) {
                    if (response.getHttpStatusCode() == 200) {
                        if (logger.isDebugEnabled()) {
                            logger.debug("Sent {} to {}.", body, url);
                        }
                    } else {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

     */
    package org.codelibs.curl.io;
    
    import static org.junit.Assert.assertArrayEquals;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertFalse;
    import static org.junit.Assert.assertNotNull;
    import static org.junit.Assert.assertTrue;
    
    import java.io.File;
    import java.io.IOException;
    
    import org.codelibs.curl.Curl;
    import org.junit.Test;
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 11.7K bytes
    - Click Count (0)
Back to Top