curl HTTP cheat sheet
Verbose | Hide progress | extra info | Write output | Timeout |
---|---|---|---|---|
-v | -s | -w “format” | -O | -m |
—trace-ascii |
-o |
|||
POST | multipart | PUT | HEAD | custom |
-d “string” | -F name=value | -T |
-I | -X “METHOD” |
-d @file | -F name=@file | |||
Basic auth | read cookies | write cookies | send cookies | user-agent |
-u user:password | -b |
-c |
-b “c=1; d=2” | -A “string” |
Use proxy | Headers, add/remove | follow redirs | gzip | insecure |
-x |
-H “name: value” | -L | —compressed | -k |
-H “name:” |