-s
, --silent
Enables silent/quiet mode and mutes curl. In this mode, curl won't show any progress meters or error messages.
-v
, --verbose
Enables verbose mode. Useful for debugging.
A line beginning with >
is header data sent by curl.
A line beginning with <
is header data received by curl.
A line beginning with *
is additional data that curl provides.
(All of these data are normally disable and not displayed by default.)
NB. This flag/option overrides --trace
and --trace-ascii <file>
.
NB. If you only want HTTP headers in your output, then -i
, --inlude
is most likely the preferable flag/option.
-w <format>
, --write-out <format>
curl will display info via stdout after a completed transfer.
<format>
is a string that can contain plain text, as well as a combination of any number of variables.
Output will be written to stdout by default. But using %{stderr}
will write output to stderr instead.
There's (a long list)[https://curl.se/docs/manpage.html#-w] of variables to use with this flag/option.
-o <file>
, --output <file>
Write output to <file>
instead of stdout.
-m <seconds>
, --max-time <seconds>
Maximum time (in <seconds>
) that you'd like an entire operation to try before timing out.
This can be useful when running batch job(s) to ensure that the job(s) are prevented from hanging for extended periods of time due to slow networks or outages.
-d "string"
, -d @file
--data-urlencode "[name]=val"
-F name=value
, -F name=@file
-T <file>
-i
, -I
-X "METHOD"
-b <file>
-c <file>
-b "c=1; d=2"
-A "string"
-x <host:port>
-H "name: value"
, -H "name:"
--resolve <host:port:addr>
--compressed
-k
-u user:password
-L
-Z
--libcurl <file>
--help
It's dangerous to go alone! Take this.