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 text
-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 "text"
proxy
-x host:port
add/remove headers
-H "name: value"
-H "name:"
custom address
--resolve
host:port:addr
smaller data
--compressed
no certcheck
-k
Basic auth
-u user:passwd
follow redirects
-L
parallel
-Z
generate code
--libcurl file
fail on error
-f

Latest version · Full curl man page · github home