Skip to content

Instantly share code, notes, and snippets.

@milovtim
Last active November 14, 2018 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milovtim/a6b73cad3b8198a019ebc0cedd01aba7 to your computer and use it in GitHub Desktop.
Save milovtim/a6b73cad3b8198a019ebc0cedd01aba7 to your computer and use it in GitHub Desktop.

curl often used options

  • -X {method} where method is {GET,POST,HEAD,etc.} (Default: GET)
  • -v verbose mode
  • -o to_file/-O save output to_file or use server-provided filename
    • -J use filename from header
  • -L follow Location header when 3xx code returns
  • -#/--progress-bar use simple progress bar (single-line) instead of default download info
  • -s silent mode
  • -u/--user <username>:<password> basic authentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment