curl HTTP cheat sheet
Markdown attempt
Verbose | Hide progress | extra info | Write output | Timeout |
---|---|---|---|---|
-v --trace-ascii file |
-s | -w format | -O -o file |
-m secs |
POST | multipart | PUT | HEAD | custom |
-d string -d @file |
-F name=value -F name=@file |
-T file | -I | -X METHOD |
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 host:port | -H "name: value" -H name: |
-L | --compressed | -k |