curl HTTP cheat sheet

hide progress
-s
verbose
-v
--trace-ascii <file>
extra info
-w "format"
output
-O
-o <file>
timeout
-m <seconds>
POST
-d "string"
-d @file
POST encoded
--data-urlencode
"[name]=val"
multipart formpost
-F name=value
-F name=@file
PUT
-T <file>
HEAD (ers too)
-I
-i
custom method
-X "METHOD"
read cookiejar
-b <file>
write cookiejar
-c <file>
send cookies
-b "c=1; d=2"
user-agent
-A "string"
proxy
-x <host:port>
add/remove headers
-H "name: value"
-H "name:"
custom address
--resolve
<host:port:addr>
smaller data
--compressed
insecure HTTPS
-k
Basic auth
-u user:passwd
follow redirects
-L
parallel
-Z
generate code
--libcurl <file>
list options
--help

Latest version · Full curl man page · github home