Curl to Java Converter
OkHttp Request.Builder from curl
Convert curl to Java using Square OkHttp. Headers, JSON bodies, and form encoding map to RequestBody and MediaType.
From the blog
Wide Column Stores Explained: Cassandra, Bigtable, and ScyllaDB
Read
How the partition key, clustering key, and LSM storage make wide column databases scale to millions of writes per second
Supports multi-line commands with \ line continuations. Conversion runs as you type.
Convert to:
Example curl commands
Supported output targets
| Language | Library | Landing page |
|---|---|---|
| Python | requests or httpx |
curl to Python |
| PHP | curl extension or Guzzle |
curl to PHP |
| Go | net/http |
curl to Go |
| JavaScript | axios |
curl to Axios |
| Java | OkHttp |
curl to Java |
| C# | HttpClient |
curl to C# |
| PowerShell | Invoke-RestMethod |
curl to PowerShell |
Also convert curl to
curl to Java FAQ
Which dependency?
Output targets OkHttp 4.x (com.squareup.okhttp3:okhttp).