All apps/HTTPie

HTTPie

httpie

HTTPie (pronounced aitch-tee-tee-pie) is a command-line HTTP client.

Runs as http, https, httpie|macOS, Linux, Windows|httpie.io

Command form

ai-draft · 3 tasks · 16 fields

Build an HTTP request with method, URL and request items (headers, query, JSON and form data). Sessions, TLS, proxy and format options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui httpie
Send an HTTP requestExample values, fixed in this page — nothing here reaches a terminal
Basic
URL*
url
Request items
string
Follow redirects
--follow
Verbose
--verbose
Advanced
Response headers only
--headers
TasksEach one presets the form for one job
GET a URL
urlitemsfollowheadersverbose
POST JSON
urlitemsauthverbose
Preview without sending
methodurlitemsjsonform
ParametersOnly these flags are editable in the form
Method
HTTP method; defaults to GET, or POST when data items are given.
string · positional 0
GETPOSTPUTPATCHDELETEHEAD
URL
The scheme defaults to 'http://' if the URL does not include one.
url · positional 1
Request items
Key-value items: Header:value, param==value, field=value (JSON/form string), field:=json, field@file.
string · positional 2 · repeatable
Send as JSON
Serialize data items as a JSON object (the default when data is given).
boolean
--json-j
Send as form
Serialize data items as form fields.
boolean
--form-f
Credentials
USER[:PASS]; if only the username is given HTTPie prompts for the password.
string
--auth-a
Auth type
enum
--auth-type-Abasicdigest
Follow redirects
Follow 30x Location redirects.
boolean
--follow-F
Response headers only
Print only the response headers.
boolean
--headers-h
Response body only
Print only the response body.
boolean
--body-b
Verbose
Print the whole request as well as the response.
boolean
--verbose-v
Download
Do not print the body; download it to a file.
boolean
--download-d
Output file
Save output to this file instead of stdout.
path
--output-o
Fail on HTTP errors
Exit with an error if the HTTP status indicates one.
boolean
--check-status
Offline
Build the request and print it but do not send it.
boolean
--offline
Timeout (seconds)
Connection timeout in seconds; 0 means no limit.
number
--timeout
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed http against its version. A form that does not match your version is not offered.