Skip to content
Docs menu

Handy cURL options

The cURL flags you will use most.

OptionUse it to
-iShow response headers (balance, limits).
-NPrint streamed events as they arrive.
-sSHide the progress meter but still show errors.
--fail-with-bodyExit with an error on 4xx and 5xx but still print the reply.
-d @file.jsonSend a request body from a file.
-F name=value / -F file=@pathSend a multipart form (uploads).
-L -o nameFollow redirects and save a download.
-w '%{http_code} %{time_total}s\n' -o /dev/nullPrint just the status and timing.

Send a long body from a file and pretty-print the answer:

Shell
curl -sS "https://api.falcorelabs.com/v1/wave" -H "Authorization: Bearer $FALCORE_API_KEY" -H "Content-Type: application/json" -d @body.json | python3 -m json.tool