1.4 17-Apr-2014

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 only dependency you need is (you can also download jcabi-http-1.4.jar and add it to the classpath):


Cutting Edge Version

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

built by maven