Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
curl tricks

curl connect to https domain using ip

curl https://tower.aws.worldpay.local --resolve tower.ew1.aws.worldpay.local:443:10.100.100.40 --cacert adca.crt -v

curl use proxy

# http proxy
curl -v -x 10.100.25.20:8080 https://google.com -L

# socks proxy
curl --socks5-hostname localhost:8001 http://www.google.com/

curl download a file

# Save as yourfile.tar.gz
curl -O http://yourdomain.com/yourfile.tar.gz

# Save as newfile.tar.gz
curl -o newfile.tar.gz http://yourdomain.com/yourfile.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.