LinuxCommandLibrary

curlie

curl frontend with httpie-style syntax

TLDR

Send a GET request
$ curlie [httpbin.org/get]
copy
Send a POST request with JSON data
$ curlie post [httpbin.org/post] [name=john] [age:=25]
copy
Send GET request with query parameters
$ curlie get [httpbin.org/get] [first_param==5] [second_param==true]
copy
Send request with custom header
$ curlie [httpbin.org/get] [X-Custom-Header:value]
copy
Upload a file
$ curlie post [httpbin.org/post] < [file.json]
copy
Pass curl options directly
$ curlie -k https://[self-signed.example.com/api]
copy

SYNOPSIS

curlie [method] url [items...]

DESCRIPTION

curlie is a frontend to curl that combines the ease of use of httpie with curl's power. It translates httpie-style syntax to curl commands and displays responses with syntax highlighting.
It uses the same syntax conventions as httpie: = for string data, := for raw JSON, == for query parameters, and : for headers.

PARAMETERS

method

HTTP method (GET, POST, PUT, DELETE, etc.)
url
Target URL
key=value
String data field
key:=value
Raw JSON data field
key==value
Query parameter
header:value
HTTP header
-v
Verbose output (show request headers).
-I, --head
Send HEAD request.
All curl options are supported and passed through directly.

CAVEATS

Requires curl to be installed. All curl options are available but passed through as-is. Curlie formats JSON output automatically.

SEE ALSO

curl(1), httpie(1), wget(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard