• 2.0.0

Fluent HTTP Client

For example:

import com.jcabi.http.Request;
import com.jcabi.http.request.ApacheRequest;
public class Main {
  public static void main(String[] args) {
    String html = new ApacheRequest("https://www.google.com")
      .uri().path("/users").queryParam("id", 333).back()
      .header(HttpHeaders.ACCEPT, MediaType.TEXT_HTML)

This blog post explains the benefits of this client comparing to Apache, Jersey, and others.

Check JavaDoc for more details.

The main dependency that you need is (you can also download jcabi-http-2.0.0.jar and add it to the classpath):


Other dependencies may be required in order to use all features of this library. See here for a full list of the dependencies that you may need.

Cutting Edge Version

If you want to use current version of the product, you can do it with this configuration in your pom.xml: