Curl cheatsheetEdit

Created , updated

Useful options

  • -O: write output to local file with same name as remote file
  • -L: follow redirects
  • -o filename: write output to filename
  • -i: include HTTP headers in the output
  • -H "X-example: header: add a specific header to the request
  • -k: bypass security checks (eg. certificate checks) for SSL downloads
  • -d key=value: pass ASCII HTTP POST data of the form key=value