curl-to-java

Instantly convert curl commands to Java code

This tool turns a curl command into Java Apache HttpClient Fluent code. Currently, it knows the following options: -d/--data, -H/--header, -I/--head, --url, and -X/--request. Feel free to contribute on GitHub!

This script derives from Matt Holt's excellent curl-to-Go and curl-to-php.

Example 1 · Example 2 · Example 3 · Example 4 · Example 5

Note: Apache HttpClient Fluent Maven Central: Maven Central