Enonic Market Enonic Market
Http Client Lib icon

Http Client Lib

HTTP communication

This library allows you to make HTTP requests to remote servers and receive the response.

Releases

  1. 2.2.1

    • Fixed deletion of temporary files
    • Compatibility:
      • 7.0.0
  2. 2.2.0

    • Added support of query parameters in `request` method
    • Compatibility:
      • 7.0.0
  3. 2.1.2

    • Fixed class loader issue
    • Compatibility:
      • 7.0.0
  4. 2.1.1

    • Upgraded to OkHttp 4.6.0
    • Compatibility:
      • 7.0.0
  5. 2.1.0

    • Added support of custom certificates
    • Compatibility:
      • 7.0.0
  6. 2.0.0

    • Adapt to Enonic XP 7.0 changes
    • Compatibility:
      • 7.0.0
  7. 1.0.6

    • Upgraded incompatible dependencies
    • Compatibility:
      • 6.15.0
  8. 1.0.5

    • Fixed NPE on missing "Content-Length" header
    • Compatibility:
      • 6.11.0
  9. 1.0.4

    • Fixed issue with unclosed response body
    • Compatibility:
      • 6.11.0
  10. 1.0.3

    • Added cookies to response
    • Added an option to avoid following redirects
    • Compatibility:
      • 6.11.0
  11. 1.0.2

    • Upgraded version of OkHttp
    • Compatibility:
      • 6.11.0
  12. 1.0.1

    • Fixed issues with empty body for response of type text
    • Compatibility:
      • 6.11.0
  13. 1.0.0

    • Initial release
    • Compatibility:
      • 6.11.0

Download Http Client Lib

This version requires XP

An XP library is normally included in your application through the Gradle build script like this:

                    dependencies {
    include 'com.enonic.lib:lib-http-client:2.2.1'
}
                
repositories {
    maven {
         url 'http://repo.enonic.com/public/com/enonic/lib/lib-http-client/'
    }
}

Download the source code for Http Client Lib

Documentation for Http Client Lib