Follow Redirects
Cookies
-b 'n1=v1; n2=v2' Send raw cookies using -b Send Binary Data
Does not process the file before sending. -d sends it in ASCII. Insecure SSL
By default all insecure requests fail. With -k, insecure requests do not fail. Authentication
Proxy
Example : -x 'http://proxy:2080' Compression
Curl accepts compression encoding formats : gzip, deflate |
POST Data
Adding an @ reads the data from file. HTTP Method
Specify method to use : POST, HEAD, PUT, GET, DELETE Output to file
Write to file
Writes output to file instead of stdout Max operation time
Connect Timeout
Specify maximum time allowed to connect to remote server Write Out
Defines what to display on stdout after a completed and successful operation. curl -s -w '%{remote_ip} %{time_total} %{http_code} \n' -o /dev/null http://ankush.io |
Send Header
User Agent
Show Response Header
Prints response headers along with response content. HEAD Request
Sends a HEAD request. Only response headers are printed. Verbose output
Useful to inspect headers > means data sent by curl < means data received by curl Silent mode
Does not output progress Show Error
When used with -s, this shows an error when it fails. Exit Codes
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Created By
Metadata
Favourited By
and 18 more ...
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by [deleted]