Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active September 19, 2022 10:46
Show Gist options
  • Save unitycoder/4419c6d5f8b96a48c171 to your computer and use it in GitHub Desktop.
Save unitycoder/4419c6d5f8b96a48c171 to your computer and use it in GitHub Desktop.
curl from commandline

curl post from (git) bash, with spoofed ip

$ curl --header "X-Forwarded-For: #.#.#.#" 'http://targetpost.url' --data 'your=1&data=2&here=ok'

tip: use copy cURL

curl HTTP cheat sheet

HTML version here

Markdown attempt

Verbose Hide progress extra info Write output Timeout
-v -s -w format -O -m secs
--trace-ascii file -o file
POST multipart PUT HEAD custom
-d string -F name=value -T file -I -X METHOD
-d @file -F name=@file
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" -L --compressed -k
-H name:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment