Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for CurlException (0.45 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/org/codelibs/curl/CurlRequestTest.java

            request.param("key", "value");
    
            try {
                request.encoding("ISO-8859-1");
                fail("Expected CurlException");
            } catch (CurlException e) {
                assertTrue(e.getMessage().contains("must be called before param method"));
            }
        }
    
        @Test
        public void testThresholdMethod() {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/curl/CurlResponseTest.java

            try {
                response.getContentAsStream();
                fail("Expected CurlException");
            } catch (CurlException e) {
                assertTrue(e.getMessage().contains("The content does not exist"));
                assertSame(exception, e.getCause());
            } catch (IOException e) {
                fail("Should throw CurlException, not IOException");
            }
        }
    
        @Test
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/curl/CurlResponse.java

         * @return the content as a string.
         * @throws CurlException if an error occurs while accessing the content.
         */
        public String getContentAsString() {
            if (contentCache == null) {
                if (contentException != null) {
                    throw new CurlException("Failed to access the content.", contentException);
                }
                throw new CurlException("Failed to access the content.");
            }
            try {
    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. CLAUDE.md

    │   │   ├── Curl.java              # Static entry point with factory methods
    │   │   ├── CurlRequest.java       # Fluent request builder
    │   │   ├── CurlResponse.java      # Response wrapper (implements Closeable)
    │   │   ├── CurlException.java     # Unchecked exception for HTTP errors
    │   │   └── io/
    │   │       ├── ContentCache.java       # In-memory or file-based caching
    │   │       └── ContentOutputStream.java # Threshold-based output stream
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Jan 08 07:28:24 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  5. README.md

    - `org.codelibs.curl.CurlRequest`: builder for HTTP requests.
    - `org.codelibs.curl.CurlResponse`: wrapper for HTTP responses.
    - `org.codelibs.curl.CurlException`: unchecked exception for errors.
    - `org.codelibs.curl.io.ContentCache` and `ContentOutputStream`: internal utilities for streaming and caching.
    
    Refer to the Javadoc for full API details.
    
    ## Building and Testing
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 2.5K bytes
    - Click Count (0)
Back to Top