Curl Cheat Sheet

Posted : admin On 1/29/2022
  • The one-page guide to Curl: usage, examples, links, snippets, and more.
  • Curl HTTP cheat sheet. Hide progress-s.

Single page documents with the most important curl options explained. Download Download View curl-cheat-sheet on GitHub. Welcome to curl cheat sheet. Curl HTTP cheat cheat. Bagder maintains curl-cheat-sheet. This page generated using GitHub Pages theme by Jon Rohan. Command injection is an attack in which the goal is execution of arbitrary commands on the host operating system via a vulnerable application.

Curl Cheat Sheet Pdf

  • PDF Link: cheatsheet-curl-A4.pdf, Category: Tools
  • Blog URL:
  • Related posts: CheatSheet: shell, #denny-cheatsheets

File me Issues or star this repo.

1.1 Curl Get/Head

Curl head requestcurl -I
Curl head request with verbosecurl -v -I
Curl with explicit http methodcurl -X GET
Curl without http proxycurl --noproxy
Curl has no timeout by defaultcurl --connect-timeout 10 -I -k
Curl get with extra headerscurl --verbose --header 'Host:'
Curl get response with headerscurl -k -v

1.2 Curl POST

Curl reference
Curl post requestcurl -d 'name=username&password=123456' <URL>
Curl post send jsoncurl <URL> -H 'content-type: application/json' -d '{ 'woof': 'bark'}'

1.3 Curl Advanced

Get my public ipcurl -L -s, curl -L -s
Curl with credentialcurl -u $username:$password
Curl uploadcurl -v -F key1=value1 -F [email protected] <URL>
Install curl in alpine linuxapk add --update curl
Curl with http2curl -k -v --http2
Curl ftp uploadcurl -T -u test:test
Curl ftp downloadcurl -u test:test -o
Curl upload with credentialcurl -v -u admin:admin123 --upload-file http://mysever:8081/dir/

1.4 Curl Script

Install packages with
Check a website response
Beautify json output for curl
Curl run remote

Curl Cheat Sheet

1.5 Wget

Download one urlwget -O /tmp/google.html
Download mutiple urlswget
Download a list of urlswget -i url-list.txt, url-list.txt

1.6 More Resources

License: Code is licencurl under MIT License.